May-06-2020, 12:52 AM
(This post was last modified: May-07-2020, 01:00 PM by wrotenberry.)
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
Then I entered these 2 entries in my 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