Is there a command-line solution to extract highlighted text from pdf?

I have a bunch of pdf documents where I personally annotated, and was wondering if there is a convenient way to automatically extract this to the text file

EDIT This is not a duplicate question in that I am looking for a command-line solution like ImageMagick for image processing.


Under Linux you can use pdfgrep

  • How is it possible to extract highlighted text with pdfgrep? – joelostblom Jul 4 '19 at 22:27
  • I was thinking there will be some sort of tag around highlighted text which can be parse with pdfgrep... – Pierre-Damien Jul 16 '19 at 13:35
  • nope -- default highlighting is coordinate positions only – Mike M Oct 11 '20 at 13:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.