Python Forum
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Duplicate Pages in a PDF
#12
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" == "FM_550" ) then
pdftk output.pdf cat 1 1 2 2 3 3 4 4 output myfile.pdf
mv myfile.pdf output.pdf
setenv QD_JOB_PAGECNT pdfPageCount output.pdf

Then I entered these 2 entries in my python script:

if ('FM-550' in product):
		dupeType = 'FM_550'
		folderTotal = '%s-Sided_SS_50s' % siding
print "setenv QD_JOBCF7 '%s'" % dupeType
Reply


Messages In This Thread
Duplicate Pages in a PDF - by wrotenberry - Jul-14-2017, 02:49 PM
RE: Duplicate Pages in a PDF - by nilamo - Jul-14-2017, 03:32 PM
RE: Duplicate Pages in a PDF - by wrotenberry - Jul-19-2017, 02:16 PM
RE: Duplicate Pages in a PDF - by nilamo - Jul-19-2017, 03:14 PM
RE: Duplicate Pages in a PDF - by wrotenberry - Jul-19-2017, 03:45 PM
RE: Duplicate Pages in a PDF - by wrotenberry - Jul-20-2017, 12:33 PM
RE: Duplicate Pages in a PDF - by nilamo - Jul-20-2017, 01:28 PM
RE: Duplicate Pages in a PDF - by wrotenberry - Jul-20-2017, 04:20 PM
RE: Duplicate Pages in a PDF - by wrotenberry - May-02-2018, 06:16 PM
RE: Duplicate Pages in a PDF - by j.crater - May-02-2018, 06:18 PM
RE: Duplicate Pages in a PDF - by wrotenberry - May-04-2018, 05:16 PM
RE: Duplicate Pages in a PDF - by wrotenberry - May-06-2020, 12:52 AM

Forum Jump:

User Panel Messages

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