jarthda has asked for the wisdom of the Perl Monks concerning the following question:

Has anyone used perl in conjunction with an acrobat module/program (on windows) to homogenize disparate versions of source files? I have a packager program that seems to flunk when the versions are different. I have no control over the creation of the documents so I would like to crawl a directory nightly and update versions. Perl seems like a good tool for this but I need help with handling and evaluating pdf files.

Replies are listed 'Best First'.
Re: pdf tool
by CountZero (Bishop) on Feb 28, 2008 at 20:18 UTC
    It is not entirely clear what you mean by "to homogenize disparate versions of source files".

    Are the source files already in PDF-format and are the PDF-files of a different version? Or are the source files, different versions of the same file, whose names perhaps collide when packaged together? How does the packager (which one?) "flunks"? Telling us which error message was produced would also help. How do you suggest to "update versions". Do you mean changing the version number? The filename? Or ????

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James