-
-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kerning issues after merging pages #1517
Comments
Hello!
💛
This problem really looks like #1489. Do you use the latest 53.4 version? |
You are absolutely right! Apologies, I should have upgraded to the latest version. I'll close the ticket. |
@liZe I have found a regression here - documented below. Please LMK if you want me to start a new issue rather than resurrecting this thread. This issue has returned in v56.1 - I have confirmed by switching between 56.1 and 53.4 (without any other changes).
And the code used to merge these PDF files together: pages = []
for output in outputs:
doc = output.get_document()
for page in doc.pages:
pages.append(page)
pdf = outputs[0].get_document().copy(pages).write_pdf() Some further testing reveals that:
|
That’s maybe related to #1662. |
Yes, that’s definitely a duplicate of #1662. Mixing pages from different documents (as in your issue) or adding elements into the tree after the rendering (as in #1662) are features that are not explicitly prevented by WeasyPrint, but they were not supposed to work and to be supported 😀. Let’s continue the discussion in #1662. |
Hello. First of all, congratulations for this library. I'm impressed at how accurate the DOM layout implementation is!
I am using weasyprint in a web app and trying to produce a multi-page PDF. The only way I found to do that (short of using some separate lib to manually join weasyprint-produced PDFs) was a code fragment I found in your docs:
This works fine, except that then I get very serious kerning/space issues in the resulting PDF. Some letters end up really too far apart and break words apart.
Is this a known issue and what can I do to avoid it?
Thanks!
The text was updated successfully, but these errors were encountered: