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 the PageIndices collection will be added to the document.

Was this article helpful?

4 out of 6 found this helpful

Have more questions? Submit a request



Please sign in to leave a comment.