pdf::reuse help with simple script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • antoneras
    New Member
    • Apr 2008
    • 1

    pdf::reuse help with simple script

    Hi, I need a little help with a simple script to combine PDF docs. I am not a development guy and I know nothing about perl. Sure someone that does will be able to help in 30 sec's.

    I have a scanned manual with all the odd pages in one doc (1,3,5 ...) and all the even pages in another doc (2,4,6 ...). I want to combine the two docs to create one normal doc with pages 1,2,3,4,5. I have the following but it adds doc2 to the end of doc1, not what I want:

    [CODE=PERL]use PDF::Reuse;

    prFile("bigdoc. pdf");

    # Add page 1 from doc1 followed by page 1 from doc2
    # Do this for all pages 1-100

    for (my $i=0; $i < 99; $i++) {
    prDoc("doc1.pdf ", $i);
    prDoc("doc2.pdf ", $i);
    }

    prEnd();[/CODE]

    Please help me to fix this. thanks.
    Antoneras.
    Last edited by eWish; Apr 2 '08, 08:00 PM. Reason: Please use code tags
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    I am not familiar with this module. I would suggest that you post this question on the PDF::reuse mailing list, listed in the documentation.

    --Kevin

    Comment

    Working...