AssertionError `assert isinstance(subtype, PSLiteral)`
vwkd opened this issue · comments
vwkd commented
Hello,
stumbled on the following error.
Traceback (most recent call last):
File "/[path]/pdfannots-master/pdfannots.py", line 8, in <module>
pdfannots.cli.main()
File "/[path]/pdfannots-master/pdfannots/cli.py", line 141, in main
doc = process_file(
File "/[path]/pdfannots-master/pdfannots/__init__.py", line 387, in process_file
annot = _mkannotation(pdftypes.dict_value(pa), page)
File "/[path]/pdfannots-master/pdfannots/__init__.py", line 58, in _mkannotation
assert isinstance(subtype, PSLiteral)
AssertionError
Using the latest master 57fd55d
with python3.
If necessary can provide the PDF in private.
Andrew Baumann commented
Thanks for the report and the sample file. I just tested your file with the current codebase. I do get plenty of annotations and I don't see this crash, so I suspect it was fixed by 21f3d14.