-
-
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
Avoid page break within a DIV #683
Comments
Nothing wrong with your html/css, its a bug in WeasyPrint. It's probably another #36 |
Any idea how to overcome this issue? I can re-write the entire html/css. I really need this design done one way or another. |
Yes, it's a duplicate of #36. WeasyPrint doesn't handle parallel flows yet, it means that you can't have automatic breaks of more than one text between two pages.
Could you provide a full (not truncated) HTML + CSS sample with a short explanation of what you want? We'll then be able to tell you if there's a solution. |
I think it would be easier to show the sample PDF I'm planning to achieve. I don't mind using tables or div floats as long as it works. Note how the contents of the first page goes to the next page. |
That's unfortunately a perfect example of what you can't do with WeasyPrint (yet). I'm sorry. I hope that I'll find the time to implement fragmentation in the next months, it's a must have. I now close this issue as it's definitely a duplicate of #36. |
I have a design where there's a long DIV and that breaks the PDF when generated. The content goes to the next page and renders the first page blank!
The PDF is attached to see how it looks after it's generated.
This is the CSS:
HTML:
What do you think I'm going wrong? I'm getting this output where the content goes to the next page:
resume_test (1).pdf
The text was updated successfully, but these errors were encountered: