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 /Resources object #4141

Closed
JorjMcKie opened this issue Dec 11, 2024 · 1 comment
Closed

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
@JorjMcKie JorjMcKie removed the fix developed release schedule to be determined label Jan 24, 2025
@julian-smith-artifex-com
Copy link
Collaborator

julian-smith-artifex-com commented Feb 6, 2025

Fixed in PyMuPDF-1.25.3.

@julian-smith-artifex-com julian-smith-artifex-com changed the title Some insertion methods fails for pages without a /Resouces object Some insertion methods fails for pages without a /Resources object Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants