What do you do when you have 600 PDF documents with titles in all caps, when you need the titles to be title-cased? I dreaded the thought of asking anyone to open each document and edit the titles by hand, not to mention fearing the typos that process might introduce.
For better or worse, here was my solution:
- Grab the Perl PDF::API2 module from CPAN
- Grab a Perl titlecase script
- Write a script opens the PDF, titlecases the title, and saves the PDF
Sounds fast and easy, right? Well, there were a few hitches:
Continue reading Using Perl and PDF::API2 to Update PDF Properties and Metadata