Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Conversation

@PierreSelim
Copy link

Currently the PDFx class does not provide any means to ellegantly close the IO stream after the end of it's usage, which prevents deleting files or moving them somewhere else.

Here is a proposal to add a close() method and a context manager.

@hugh2632
Copy link

p = pdfx.PDFx(filename). After all, you can call p.stream.close()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants