You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a case where I'm generating a PDF that has repeating content including repeating page numbering for each instance of the content.
So, for example:
Create PDF document
Append 4 pages
Call number_pages with a page_filter that excludes page 4.
Repeat steps 2 and 3 several times.
What happens is the 4th page in each set gets overdrawn except in the final iteration. I believe this is because number_pagescallsgo_to_page internally, potentially leaving the cursor on a different page from when it was called. This is unintuitive.
I was able to fix it in my case by inserting a go_to_page after every number_pages that goes to the last page in the PDF.
I believe the fix is to make number_pages return the cursor to whatever page it was on before number_pages was called.
The text was updated successfully, but these errors were encountered:
I have a case where I'm generating a PDF that has repeating content including repeating page numbering for each instance of the content.
So, for example:
number_pages
with apage_filter
that excludes page 4.What happens is the 4th page in each set gets overdrawn except in the final iteration. I believe this is because
number_pages
callsgo_to_page
internally, potentially leaving the cursor on a different page from when it was called. This is unintuitive.I was able to fix it in my case by inserting a
go_to_page
after everynumber_pages
that goes to the last page in the PDF.I believe the fix is to make
number_pages
return the cursor to whatever page it was on beforenumber_pages
was called.The text was updated successfully, but these errors were encountered: