[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: doc-base is hugely unloved; bug mass-filing needed?



On Tue, Aug 10, 2010 at 06:08:50PM +0000, Ian Zimmerman wrote:
> PDFs have titles too, and they can't be snarfed in any way I know of.

pdftk will dump the info dictionary for PDFs, but if you want something
a little less heavyweight, try:

  lakeview ok % zgrep -a '^/Title' /usr/share/doc/texmf/latex-xcolor/xcolor.pdf.gz | sed -re 's,/Title *\(,,g; s/\)$//; s/\\\(/(/g; s/\\\)/)/g'
  xcolor v2.11 (2007/01/21)

Of course, this only works when the generating software sets the info
dictionary, and it doesn't work for XMP.  Still, it's better than
nothing.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: Digital signature


Reply to: