pdf:pagenumber and pdf:pagecount tag issues
See original GitHub issueI have strange issues with the above tags inside html templates.
Let’s say I have <div id="footer_pagenumber">Page <pdf:pagenumber/></div>
then the page number is printed twice (11 instead of 1). If I add a single whitespace after the <pdf:pagenumber/>
tag, the number is fine. The same problem applies to <pdf:pagecount/>
.
Another issue is with <pdf:pagecount/>
is that if I use this tag, the background image of my PDF is not rendered anymore.
Tested with xhtml2pdf v0.0.5, reportlab 2.7 and Pillow 2.0.0.
Issue Analytics
- State:
- Created 10 years ago
- Comments:17 (2 by maintainers)
Top Results From Across the Web
pdf:pagenumber and pdf:pagecount tag issues - Bountysource
I have strange issues with the above tags inside html templates. Let's say I have <div id="footer_pagenumber">Page <pdf:pagenumber/></div> ...
Read more >Working with HTML — xhtml2pdf 0.2.7 documentation
In the example above, the vendor-specific tags <pdf:pagenumber> and <pdf:pagecount> are used to display page numbers and the total page count.
Read more >Printing page numbers using Pisa - python - Stack Overflow
One problem I ran into was adding a static footer to my pages, which contains a <pdf:pagenumber /> tag and should show the...
Read more >renderAs PDF page numbering - Salesforce Stack Exchange
Browse other questions tagged ... Pdf page number in Html content ... Problem set recommendations for a student who has taken classes ...
Read more >Specifying consistent page numbering for PDF documents
Tagged PDF documents. This technique relates to: ... Example 1: Editing PDF page number formatting specifications using Adobe Acrobat 9 Pro.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also experience it but I found a workaround. It was good enough to put one space just after the tag, i.e. change
--<pdf:pagenumber>--
to--<pdf:pagenumber> --
(double hypen is there to make the space visible).+11