Open PierreSelim opened 3 years ago
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.
close()
p = pdfx.PDFx(filename). After all, you can call p.stream.close()
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.