By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,130 Members | 2,141 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,130 IT Pros & Developers. It's quick & easy.

pdf::reuse help with simple script

P: 1
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:

Expand|Select|Wrap|Line Numbers
  1. use PDF::Reuse;
  3. prFile("bigdoc.pdf");
  5. # Add page 1 from doc1 followed by page 1 from doc2
  6. # Do this for all pages 1-100
  8. for (my $i=0; $i < 99; $i++) {
  9.   prDoc("doc1.pdf", $i);
  10.   prDoc("doc2.pdf", $i);
  11. }
  13. prEnd();
Please help me to fix this. thanks.
Apr 2 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 971
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.

Apr 3 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.