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

Some insertion methods fails for pages without a /Resouces object #4141

Open
JorjMcKie opened this issue Dec 11, 2024 · 0 comments
Open

Some insertion methods fails for pages without a /Resouces object #4141

JorjMcKie opened this issue Dec 11, 2024 · 0 comments
Labels
bug fix developed release schedule to be determined

Comments

@JorjMcKie
Copy link
Collaborator

Description of the bug

For attached file, TexWriter text insertions and .insert_htmlbox will fail.

How to reproduce the bug

doc=pymupdf.open("FzErrorArgument_single_page.pdf")
page=doc[0]
page.insert_htmlbox((100,100,200,200),"Hallo")

Will fail - similar for TextWriter.
FzErrorArgument_single_page.pdf

PyMuPDF version

1.25.1

Operating system

Other

Python version

3.12

@JorjMcKie JorjMcKie added the bug label Dec 11, 2024
@JorjMcKie JorjMcKie changed the title Some insertion methods fail when a a page has no /Resouces object Some insertion methods fails for pages without a /Resouces object Dec 11, 2024
@JorjMcKie JorjMcKie added the fix developed release schedule to be determined label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix developed release schedule to be determined
Projects
None yet
Development

No branches or pull requests

1 participant