Skip to content

Conversation

@dhdaines
Copy link
Owner

@dhdaines dhdaines commented Jul 3, 2025

We still use _fp if it's there, which may or may not be a good idea, but otherwise we can, and will, simply wrap a BytesIO around pdf.buffer, which works quite well.

Also use a context manager to remove calls to doc.close() though sadly we can't do this for page.close() too.

@dhdaines dhdaines merged commit 2433e36 into main Jul 3, 2025
4 checks passed
@dhdaines dhdaines deleted the pdfium_on_document branch July 3, 2025 02:32
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

Successfully merging this pull request may close these issues.

2 participants