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

Another issue with destorying PDF when inserting html #3886

Open
elipongr opened this issue Sep 25, 2024 · 4 comments
Open

Another issue with destorying PDF when inserting html #3886

elipongr opened this issue Sep 25, 2024 · 4 comments
Labels
duplicate upstream bug bug outside this package

Comments

@elipongr
Copy link

We have another issue:

We use it with page.clean_contents(true), as you know making it false causes the issue above. The result is that the whole PDF content is deleted.

White_pdf_IN.pdf
White_pdf_OUT.pdf

Originally posted by @elipongr in #3741 (comment)

@elipongr elipongr changed the title We have another issue: Another issue with destorying PDF when inserting html Sep 25, 2024
@JorjMcKie
Copy link
Collaborator

There is need to used page.clean_contents() any longer to ensure correct positions of content insertions.

@elipongr
Copy link
Author

Any blog or documentation where you have updated it?

@JorjMcKie
Copy link
Collaborator

Any blog or documentation where you have updated it?

We have made this more explicit in the current documentation https://pymupdf.readthedocs.io/en/latest/functions.html#Page.clean_contents.

@JorjMcKie
Copy link
Collaborator

Otherwise, this is now a duplicate of #4034, for which an upstream bug has been submitted.

@JorjMcKie JorjMcKie added duplicate upstream bug bug outside this package labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate upstream bug bug outside this package
Projects
None yet
Development

No branches or pull requests

3 participants
@JorjMcKie @elipongr and others