atlanhq / camelot

Camelot: PDF Table Extraction for Humans
https://camelot-py.readthedocs.io
Other
3.62k stars 350 forks source link

Fix #303 #310

Closed niazangels closed 5 years ago

niazangels commented 5 years ago

Optimization to save hitting the disk for every call to camelot.handlers.PDFHandler._save_page

The modified function _save_pages reads the file one time and uses that PdfFileReader object to write out all the pages passed on to it.