Skip to content
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

Change from PrinceXML to Weasyprint? #35

Closed
LaPingvino opened this issue Dec 21, 2018 · 3 comments
Closed

Change from PrinceXML to Weasyprint? #35

LaPingvino opened this issue Dec 21, 2018 · 3 comments

Comments

@LaPingvino
Copy link

I created an AUR package for Arch Linux of textplay and it looks like python-weasyprint works better than PrinceXML at least as far as that it looks the same but without the watermark, and that later one because it's actually open source. Before I tried wkhtmltopdf but that didn't work as well at all.

@overvale
Copy link
Owner

I hadn't seen weasyprint before, thanks for the recommend.

The only thing that's prince-specific in textplay are two CSS rules. One tells has to do with not printing the page one page number, and the second tells prince to not create PDF bookmarks for all h1, h2, h3, etc.

If weasyprint has similar CSS rules I'd consider including them.

@LaPingvino
Copy link
Author

Marking Kozea/WeasyPrint#724 here for the first of the two, that doesn't seem to be supported yet. The bookmark-level css is supported exactly the same without prefix.

@LaPingvino
Copy link
Author

LaPingvino commented Jan 12, 2019

Kozea/WeasyPrint#474 and Kozea/WeasyPrint#511 seem to adequately solve the first page issue though :D. I am going to experiment a little and submit a Pull Request...

@overvale overvale closed this as completed May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants