0xabu/pdfannots

Is it possible to detect shapes like Lines and Arrows in pdf

balandongiv opened this issue · 2 comments

Great works, really appreciate it.

Just curious, is it possible to detect the shapes like, rectangle, line and arrows using this code, if possible for future improvement?

0xabu commented

Thanks. I think those probably show up in the annotations, yes -- we filter for only a few types of annotations:

ANNOT_SUBTYPES = frozenset({'Text', 'Highlight', 'Squiggly', 'StrikeOut', 'Underline'})

... but I'm not sure how you would usefully represent those in a text output format?

Thanks for pointing the code snapshot. Apparently, no text output is generated even though we make an arrow line below a text.