Question
How to open one page of a multipage file?
Answer
AddImageFile method of FRDocument object contains PageIndices parameter.
HRESULT AddImageFile(
BSTR ImageFileName,
IPrepareImageMode* PrepareMode,
IIntsCollection* PageIndices
);
The following C# code specifies to open only the 2nd page of a document:
FRengine.IIntsCollection PageIndices = FREngine.CreateIntsCollection();
PageIndices.Add(1);
FRDocument.AddImageFile("MyImage.pdf", null, PageIndices);
Only the pages with numbers added in the PageIndices collection will be added to the document.
Comments
0 comments
Please sign in to leave a comment.