How to open one page of a multi-page file?

AddImageFile method of FRDocument object contains PageIndices parameter. 

HRESULT AddImageFile(
  BSTR               ImageFileName,
  IPrepareImageMode* PrepareMode,
  IIntsCollection*   PageIndices

use the following C# code to open only 2nd page of an image:

FRengine.IIntsCollection PageIndices = FREngine.CreateIntsCollection();
FRDocument.AddImageFile("MyImage.pdf", null, PageIndices);

Only the pages with numbers added in PageIndices collection will be added to the document.

Was this article helpful?

0 out of 2 found this helpful

Have more questions? Submit a request

Recently viewed