473,396 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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:

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.
Apr 2 '08 #1
1 1637
eWish
971 Expert 512MB
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
Apr 3 '08 #2

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

Similar topics

4
by: Andrew | last post by:
My VB Application opens an Access Report and has an option to generate the report in PDF once the report is closed. This is accomplished by: - Switching over to the Acrobat Printer (i.e....
1
by: Serge ANTON | last post by:
Hi, I try to produce pdf with nfop, J'essaye de générer du pdf avec nfop, but I not found any tutorial or sample code. I have a valid fo file (I generate pdf with this file using fop and...
4
by: GJK | last post by:
Hello, I am trying to download a pdf file using HTTPWebRequest class and then save the downloaded pdf to a SQL Server 2005 database image column and then display the pdf on a web app. When I try...
3
by: victor | last post by:
I want to generate a report and the PDF fits perfectly. Though there is an issue of using different encoding in the doc. I tried PyPS with no success. I need a lib that can make PDFs with an...
10
by: krishnakant Mane | last post by:
hello all. I am developing an ncurses based python application that will require to create pdf reports for printing. I am not using py--qt or wx python. it is a consol based ui application and I...
3
by: Yoda | last post by:
I have a ASP.NET 2.0 website that allows a user to select a PDF that opens in another window...when it opens they can edit the text fields within the PDF. I have a button on the PDF and when...
1
by: Filips Benoit | last post by:
Dear All, From a Access 2000 Database the Labo analyses are exported in a xls-files and send to the customer as email-attachment. It is all done by code in 1 cmd.: 1. Creating a xls-file from a...
12
by: Shahab Vahabzadeh | last post by:
I Wanna Get Articles Fromm DB And Show Them By Their ID But @ Bottom Of Each Page a Link to Convert it to PDF ... Because i Wanna User to Download it, Please Help Me Thanks
4
by: Mike De Petris | last post by:
I am using itextsharp to fill in and flatten some fields from data filled in a web form field and all works quite well. The question now is how to manage the pdf template that has the fields to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.