AddImportedPage

AddImportedPage

Forum member · Feb 12, 2014
Hello Is there a way to know how many pages an imported pdf has? I would like to use AddImportedPage in a loop to pull in all the pages. Thanks Adam

Re: AddImportedPage

Support · Feb 12, 2014
Hello Adam, Yes, you can get the page count of the input PDF document without any problem using our DynamicPDF Merger for COM/ActiveX product. You will need to create PdfDocument object by loading input PDF. Then you can retrieve the page count using pageCount property. Below is the code sample for it. Dim pdf As New DynamicPDF.PdfDocument pdf.LoadPdf "C:\Temp\DocumentA.pdf", "" Dim pageCount As Integer pageCount = pdf.pageCount Thanks, ceTe Software Support Team.