Get PDF page count

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

DynamicPDF Converter for .NET (v1) Forum

 Jul 15 2010 7:18 AM
Hi,

Hi,

We are currently using Dynamic PDF Converter for our development.
Could you please tell me is there are any way get page count of pdf using any CETE software.

Greately appreciate if you could reply as soon as possible.

Thanks,
Regards,
 Jul 15 2010 9:20 AM
Posted by a ceTe Software moderator
Hello,

It is not possible to get the page count of the PDF document using our DynamicPDF Converter product. You can only convert other file types to PDF format and save it to the disk or output it to a byte array.

You can then use our DynamicPDF Merger for .NET product to get the page count of PDF document. Below is the sample code.

MergeDocument doc = new MergeDocument(@"PDF file path");
int pageCount = doc.Pages.Count;

Please feel free to download the evaluation version of our DynamicPDF Merger for .NET product from our website.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 2:51 AM.