View PDF document info from the Terminal

Jan 29, '04 10:01:00AM

Contributed by: IhabHussein

Since upgrading to Panther, I have been using Preview.app exclusively to view PDF. I just love the full-text search drawer. Anyway, the only Acrobat Reader feature I'm missing, and Preview.app doesn't seem to have, is the ability to display document information. That is, things like the creation date, subject, and keywords of the document.

I'm not sure if anyone else would find this useful, but I wrote a tiny script to extract and display those information from the command line. Here is a sample of its use:


[Ihabs-Computer:~] ihab% pdfinfo newfaq.pdf
newfaq.pdf: PDF version 1.4
Author ()
Title (The UK TUG FAQ)
Subject ()
Creator (LaTeX with hyperref package)
Producer (pdfTeX-1.10b)
Keywords ()
CreationDate (2003-08-29 16:23:00)
The script, together with an AppleScript app for drag-and-drop use, is available as a 23KB download from my site.

Comments (2)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20040121063848904