Extract first line of pdf file and put as title

Started by JpPamplona, November 14, 2017, 12:54:55 PM

Previous topic - Next topic

JpPamplona

Hello guys,

is there a way of getting the first line of many pdf files and put it as theirs title metadata?

Thanks!

Phil Harvey

Sorry, ExifTool doesn't have the ability to decode the displayed content of a PDF document.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Hayo Baan

Exiftool can't do this, but with a little bit of regular expression and scripting magic, perhaps you can achieve what you want to do with e.g. ps2ascii (tool to extract text from a PDF, part of Ghostscript). I use this to automatically move some PDFs I receive regularly to a dedicated folder on my system.
Hayo Baan – Photography
Web: www.hayobaan.nl