Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

View PDF document info from the Terminal UNIX

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.
    •    
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[6,199 views]  

View PDF document info from the Terminal | 2 comments | Create New Account
Click here to return to the 'View PDF document info from the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View PDF document info from the Terminal
Authored by: marcel69 on Jan 29, '04 11:50:35AM

Would there be any possibility to even edit and save the meta-information in PDF-Files? Or does anybody know a tool -beside Adobe Acrobat- to do this job?



[ Reply to This | # ]
View PDF document info from the Terminal
Authored by: kps on Jan 29, '04 02:50:28PM
A really useful set of free PDF tools come along with xpdf; along with a pdfinfo command much like this one, there are pdftotext to convert a PDF to text, pdfimages to extract images, and a few others.

[ Reply to This | # ]