Making modifications for PDF Document info tags.

There is a CPAN module called PDF-111 (http://search.cpan.org/author/ANTRO/PDF-111/PDF.pm) which offers me the ability to read the Document Information tags in PDFs and there is another called PDF-Create-0.01 (http://search.cpan.org/author/FTASSIN/PDF-Create-0.01/lib/PDF/Create.pm) which will write them in new PDF documents. However I can find any way to edit these whole sale. I currently have a very large number of these files but to date my Perl have been mostly for fiddling various output into comma separated values so this is a bit beyond me.

What I think I need it a function like the GetInfo("Title") suppiled by PDF-111 for writing. The function seems to exist in the creation of a new PDF but I have no way to edit. Adobe's own batch processing is insufficient for what I need and I find nothing in Java using Adobes own SDK. Is there something that does this that I'm missing or I am I in essence asking for a new CPAN module?

I need to set the title tag to the same as the file name because when an Acrobat index is built it used the title tag not the file name as the reference in the search pane.


In reply to Editing PDF document infomation tags by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.