You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-2-783804a94b7a>](https://localhost:8080/#) in <cell line: 4>()
2 from pdftext.extraction import dictionary_output
3
----> 4 pages = dictionary_output(Path("specrel.pdf"), sort=True, keep_chars=False)
2 frames
[/usr/local/lib/python3.10/dist-packages/pdftext/extraction.py](https://localhost:8080/#) in _load_pdf(pdf, flatten_pdf)
17
18 if not isinstance(pdf, pdfium.PdfDocument):
---> 19 raise TypeError("pdf must be a file path string or a PdfDocument object")
20
21 # Must be called on the parent pdf, before the page was retrieved
TypeError: pdf must be a file path string or a PdfDocument object
The text was updated successfully, but these errors were encountered:
The new v0.3.11 release seems to be broken. Minimal reproducible example (e.g., in a Google Colab):
Output:
The text was updated successfully, but these errors were encountered: