Evaluating PDF Converter, need page count

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Converter for .NET (v1)  /  Evaluating PDF Converter, need page count

DynamicPDF Converter for .NET (v1) Forum

Hello,
We are evaluating PDF Converter, and need to get the page count for each converted PDF document.   Is the only option to use Merger (as I see in a post from 2010)?  Do we need to purchase two separate products?  PDF Converter and PDF Merger?  Or PDF Converter and Core Suite?  Is there any option to bundle these two functions?
Thank you
Jeff
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.

All times are US Eastern Standard time. The time now is 3:55 AM.