How Can I find out the total page count of the imported page.
DocumentA.pdf has 4 pages total.
Example:
ImportedPageData importedPage2 = new ImportedPageData( MapPath( "PDFs/DocumentA.pdf" ), 2, -306, 0);
ImportedPageData
Re: ImportedPageData
Support · Nov 29, 2005To find the total number of pages in a document you will want to use the PdfDocument object. Create a PdfDocument and then you can get the number of pages within that document. So for instance:
PdfDocument pdf = new PdfDocument( MapPath( "PDFs/DocumentA.pdf" ) );
// Get the number of Pages
int pageCount = pdf.Pages.Count;
Then keep in mind then that you can use that PdfDocument in the constructor of the other objects that you will want to use (ImportedPageData or MergeDocument).
Thanks,
ceTe Software Support Staff