Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Duplicate Pages in a PDF
Post: RE: Duplicate Pages in a PDF

I did finally manage to duplicate pages in a pdf successfully in Linux with pdftk (not pdfrw). I made this entry in a C shell script and referenced it with a python script: if ( "$QD_JOBCF7" == "...
wrotenberry General Coding Help 11 9,618 May-06-2020, 12:52 AM
    Thread: Duplicate Pages in a PDF
Post: RE: Duplicate Pages in a PDF

I'm running Python 2.6.6. The pdfrw installer put it in the "python2.7" folder. I moved the pdfrw folder to the "python2.6" folder and it did import correctly to the python script. So I'm heading in t...
wrotenberry General Coding Help 11 9,618 May-04-2018, 05:16 PM
    Thread: Duplicate Pages in a PDF
Post: RE: Duplicate Pages in a PDF

I did successfully install pdfrw in /usr/lib/python2.7/site-packages. But I am still getting "ImportError: No module named pdfrw" error. How do I get the module imported correctly? Right now my python...
wrotenberry General Coding Help 11 9,618 May-02-2018, 06:16 PM
    Thread: Duplicate Pages in a PDF
Post: RE: Duplicate Pages in a PDF

Would I be able to use iText? Version 5.5 is already installed and is manipulating and creating our pdf's now.
wrotenberry General Coding Help 11 9,618 Jul-20-2017, 04:20 PM
    Thread: Duplicate Pages in a PDF
Post: RE: Duplicate Pages in a PDF

I did find the error log. After running the if statement above in my previous reply the log had this reply: File "/usr/mprint/bin/procPPXml.py", line 471, in <module> from pdfrw import Pd...
wrotenberry General Coding Help 11 9,618 Jul-20-2017, 12:33 PM
    Thread: Duplicate Pages in a PDF
Post: RE: Duplicate Pages in a PDF

Here are my answers: Is the source pdf always named "doc.pdf"?.......... I think so. The original file may have a crazy name from our online store like "16034_225533_va2cgkxv_press.pdf". The input f...
wrotenberry General Coding Help 11 9,618 Jul-19-2017, 03:45 PM
    Thread: Duplicate Pages in a PDF
Post: RE: Duplicate Pages in a PDF

Thanks for the info! So far I haven't been able to get the pages duplicated. Here is the if statement that does work. (except page 1 and page 2 need to be duplicated in the file) folderTotal is a vir...
wrotenberry General Coding Help 11 9,618 Jul-19-2017, 02:16 PM
    Thread: Duplicate Pages in a PDF
Post: Duplicate Pages in a PDF

How can I duplicate pages of a PDF in a python script? We have a workflow system for a print shop that is ran by if statements in a python script. Certain types of PDF files with multi pages ran on mu...
wrotenberry General Coding Help 11 9,618 Jul-14-2017, 02:49 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020