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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@JorjMcKie @elipongr and others