Posted by a ceTe Software moderator
Hello,
It is not possible to retrieve the page numbers in the converted PDF using DynamicPDF Converter product alone. You will need to use combination of DynamicPDF Converter and Merger product to convert the other supported files to PDF (using Converter product) and retrieve the page count (using Merger product). Below is the code sample.
//convert other supported file types to PDF using Converter product.
byte[] byteData=Converter.Convert(@"File path of support file type");
//Merge the PDF using DynamicPDF Merger product to get the page count.
PdfDocument pdf = new PdfDocument(byteData);
MergeDocument document=new MergeDocument(pdf);
int pageCount=document.Pages.Count;
The DynamicPDF Converter and Merger are separate products. You will need to purchase them separately. It is not possible to bundle Merger and Converter products in a single product.
Thanks,
ceTe Software Support Team.