-
-
Notifications
You must be signed in to change notification settings - Fork 710
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
Only getting single page PDF #198
Comments
CSS(string='@page { size: A4; margin: 2cm };'
'* { float: none !important; };'
'@media print { nav { display: none; } }') CSS does not use semi-colons between rules, so your second and third rules here will be invalid: they’re style rules whose selectors start with a semi-colon. But fixing this does not fix your pagination issue. I see you’re using Now if you can’t change the HTML for some reason, you could butcher the document with a stylesheet like |
All the paragraphs are in one single cell and, as Simon stated, Weaspyrint does not allow to split table cells (yet). If you could rearrange the code, so that the paragraphs would all reside in their own table cell and row, it should work. E.g.
|
Or, you know, just use |
Duplicates #36 |
I am using a template from Zurb; and using WeasyPrint as an option to show the email as a PDF. Unfortunately I am only ever getting one page.
Here is a runnable test-case showing this issue:
How do I get multiple pages?
The text was updated successfully, but these errors were encountered: