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.
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.
Comment