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

Pages cannot be duplicated #1473

Closed
zelitomas opened this issue Oct 17, 2021 · 1 comment
Closed

Pages cannot be duplicated #1473

zelitomas opened this issue Oct 17, 2021 · 1 comment
Labels
bug Existing features not working as expected
Milestone

Comments

@zelitomas
Copy link

It seems that WeasyPrint is failing when I try to include a page more than twice, like so:

# Minimal example of the behaviour
from weasyprint import HTML

document = HTML(filename="./index.html").render()
duplicated_pages = document.copy([*document.pages, *document.pages])
duplicated_pages.write_pdf("result.pdf")

The document can be found here: https://gist.github.com/zelitomas/50aa47d4966e1b743588a284e12cf599

Actual Result

Snímek z 2021-10-17 13-56-45

result.pdf

Expected result

Snímek z 2021-10-17 13-56-54

@liZe liZe added the bug Existing features not working as expected label Nov 6, 2021
@liZe liZe closed this as completed in aafb119 Nov 14, 2021
@liZe
Copy link
Member

liZe commented Nov 14, 2021

Thanks a lot for the bug report!

@liZe liZe added this to the 54.0 milestone Nov 14, 2021
liZe added a commit that referenced this issue Apr 15, 2022
The bug #880 has been resolved by handling stacking contexts stored as box
children, adding this condition.

But the stacking contexts stored as box children introduced other bugs. #1473
was another bug, and its fix also removed the problem of #880.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing features not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants