[Python] Weasyprint HTML to PDF huge gap in right margin

Discussão em 'Python' iniciado por Stack, Junho 24, 2025.

  1. Stack

    Stack Membro Participativo

    I'm using Weasyprint to print an HTML template to PDF, and I keep getting a gap of 10cm on the right side.

    I'm using @page:(size:letter;) as only page attribute.

    I've tried setting the page size manually, but I still keep getting a huge space to the right of all the pages.

    Any thoughts on what could be the problem?

    Continue reading...

Compartilhe esta Página