Connecting Tech Pros Worldwide Help | Site Map

pdf::reuse help with simple script

Newbie
 
Join Date: Apr 2008
Posts: 1
#1: Apr 2 '08
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;
  2.  
  3. prFile("bigdoc.pdf");
  4.  
  5. # Add page 1 from doc1 followed by page 1 from doc2
  6. # Do this for all pages 1-100
  7.  
  8. for (my $i=0; $i < 99; $i++) {
  9.   prDoc("doc1.pdf", $i);
  10.   prDoc("doc2.pdf", $i);
  11. }
  12.  
  13. prEnd();
Please help me to fix this. thanks.
Antoneras.
eWish's Avatar
Moderator
 
Join Date: Jul 2007
Location: Arkansas
Posts: 900
#2: Apr 3 '08

re: pdf::reuse help with simple script


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
Reply