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
When trying to write text or content to any pages in a document after page 1, the pages turn out blank. I tried compiling the "pagelabels.nim" example file as well, having the same problem. The labels work as expected.
Using Nim 2.0.0 and nimPDF 0.4.3.
I have tried compiling the code on multiple computers, both running Debian 12, and tried opening the PDF's with both zathura and Brave.
Screenshot of zathura, PDF exported with pagelabels.nim:
The text was updated successfully, but these errors were encountered:
I located the issue now. I didn't set a font after adding a new page, only after adding the first page with doc.setFont(...).
It seems a bit counter intuitive having to specify the font for the doc variable each time after adding a page, but making a new proc with addPage() as well as setFont() works fine though.
When trying to write text or content to any pages in a document after page 1, the pages turn out blank. I tried compiling the "pagelabels.nim" example file as well, having the same problem. The labels work as expected.
Using Nim 2.0.0 and nimPDF 0.4.3.
I have tried compiling the code on multiple computers, both running Debian 12, and tried opening the PDF's with both zathura and Brave.
Screenshot of zathura, PDF exported with pagelabels.nim:
The text was updated successfully, but these errors were encountered: