21
Views
2
Comments
[Ultimate PDF for Traditional Web] PrintLayout not working in dev environment
ultimate-pdf-for-traditional-web
Web icon
Forge asset by Leonardo Fernandes
Application Type
Traditional Web
Platform Version
11.33.0 (Build 44426)

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

2025-09-25 14-38-22
Lokesh Kumar Yadav

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. 

2025-07-22 10-30-27
Mandar Deshpande

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.

  

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.