conjuncts / gmft_pymupdf

Use pymupdf with gmft.
GNU Affero General Public License v3.0
3 stars 0 forks source link

Feature Request: Support initializing PyMuPDFDocument with bytes objects #1

Open Grelo4ka opened 5 days ago

Grelo4ka commented 5 days ago

Currently, PyMuPDFDocument can only be initialized by providing a file path as a str. Similar libraries, such as pdfplumber, accept multiple data types, like pathlib.Path, BufferedReader or BytesIO. Adding this feature would allow the use of PDF documents directly downloaded as bytes objects, such as those from the web.

conjuncts commented 2 days ago

Sounds reasonable -- please let me know if commit ec63abc is sufficient.