Skip to content
Discussion options

You must be logged in to vote

Hi @vgiralt! What you're experiencing is unfortunately quite common when printing labels, and I've had this kind of problems myself with PDFs as well as text editors.

fpdf2 generates PDFs with precise coordinates in a virtual page space, and since your output aligns correctly in PDF viewers, it means the layout itself is correct.

The displacement you're seeing typically comes from the printing side, not the PDF generation. Printers and their drivers can introduce offsets due to things like non-printable margins, scaling settings (e.g. “fit to page”), or hardware calibration differences — which would explain why two printers produce different shifts.

fpdf2 does not have visibility into or …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vgiralt
Comment options

Answer selected by vgiralt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants