How to find the number of pages in a pdf file from pyEForm object
I have a requirement in which I need to determine the number of pages in the pdf document generated. We generate a pdf file and store it in pyEForm property and from this Object I need to find the number of pages in that pdf file. Is it possible to find the number of pages using pyEForm Object(using java code if needed)?
***Updated by moderator: Lochan to add Categories***
Actually we are not generating the pdf document. It was generated by entirely different team, hence why I asked a question on how to generate from pyEForm object itself. But your other reply helped me fix the issue, thanks
I have a requirement to add some text on PDF header which depends on the page number of the PDF, which are generated dynamically , Is there a way to capture page number/first page/last page of PDF as getNumberOfPages() of PDFbox will only get total no of pages
Thank You Mahesh , according to my requirement I have to add text in PDF header according to Page No, Where as using PDDocument api I have to extend Java code in HTML TO PDF, but I need to set before it get Processed via HTMLTO PDF (pyPDFHeaderHTMLTemplate -Param(Passing HTML Stream))