[vox-tech] Getting document name from inside a PDF

Rob Rogers vox-tech@lists.lugod.org
Mon, 14 Apr 2003 18:45:14 -0400


On Mon, Apr 14, 2003 at 15:29:02PM -0700, Bill Kendrick wrote:
> On Mon, Apr 14, 2003 at 01:26:12PM -0400, Mike Simons wrote:
> > On Sun, Apr 13, 2003 at 10:39:18PM -0700, Bill Kendrick wrote:
> > > Do PDFs somehow store a 'document name' inside them?
> > 
> > msimons@salomon:~/taxes$ 
> >   for l in *.pdf; do
> >     echo $l; pdfinfo $l | grep -E '(Title|Subject)'; echo;
> >   done
> 
> Nice!  If that's available on the webserver I'm writing the application on,
> I'll use it.  Otherwise, I'll have to stick to my "strings | grep", since
> those tools _are_ installed. ;^)

Not sure it's going to be available on a server...pdfinfo (at least the
one I have) came as part of xpdf. (And I'm running a souce-based distro,
so it's not just that the pdf tools got grouped all in one rpm or
something...)