a commandline utility that could take a pdf file, grab its title, author, and date and rename it to some combination of those, would be EXTREMELY useful.-mouser
@mouser: closest I know of to that would be
pdfinfo from the
XPDF package.
pdfinfo Help:
pdfinfo version 3.02
Copyright 1996-2007 Glyph & Cog, LLC
Usage: pdfinfo [options] <PDF-file>
-f <int> : first page to convert
-l <int> : last page to convert
-box : print the page bounding boxes
-meta : print the document metadata (XML)
-enc <string> : output text encoding name
-opw <string> : owner password (for encrypted files)
-upw <string> : user password (for encrypted files)
-cfg <string> : configuration file to use in place of .xpdfrc
-v : print copyright and version info
-h : print usage information
-help : print usage information
--help : print usage information
-? : print usage information
The command line
pdfinfo 2011_velbon_catalog.pdf > info.txt
on the Velbon (tripod) catalogue gives:
Title: 2011_catalog.indd
Creator: Adobe InDesign CS3_J (5.0.4)
Producer: Adobe PDF Library 8.0
CreationDate: 03/17/11 17:31:25
ModDate: 03/24/11 11:30:11
Tagged: no
Pages: 16
Encrypted: yes (print:yes copy:yes change:no addNotes:no)
Page size: 1274.43 x 273.584 pts
File size: 9668147 bytes
Optimized: yes
PDF version: 1.6
I used to use this for re-naming PDFs of patents at work, with something like an AWK script to extract the relevant information and write a temporary batch file that did the work. The trouble is you can't rely on all those fields being filled in for any particular PDF.