Hi Team,
I added a "PageCount" and "PageNumber" block in my PDF screen to show a page number, but it was not showing the page numbers and counts. But when I tried in my personal environment, it worked.
FYI:
PrintLayout block used in PDF screen.
PageCount and PageNumber blocks used in footer of the PrintLayout.
PrintToPDF_Advanced action used to generate the PDF binary
In Dev Environment, "Page" and "OF" words are shown in last page
Thanks
Vishnu Shankar
It’s likely a rendering or timing issue in the non-working environment. Ensure PageNumber and PageCount are correctly placed in the PrintLayout footer and try adding a small wait (e.g., 200ms) before calling PrintToPDF_Advanced.
Hi @Vishnu shankar
This usually means the wkhtmltopdf engine used by Ultimate PDF is not able to parse the special HTML comments (<!--pageNumber-->, <!--pageCount--> ) that this component injects.
For this in Dev, open the generated PDF HTML and check if you see :
<!--pageNumber--> and <!--pageCount--> in the footer HTML.
If they are present but not replaced, this could be wkhtmltopdf issue.
If missing, this could be a layout issue.