Thomas Gagne
2010-04-20 19:57:50 UTC
I don't know how to read PS yet, and so I'm confused about the code below.
Under what circumstances will duplex be true in the code below? Also,
will pdfSetup need to be invoked each time to set duplex for each page?
Once duplex is turned on, are all pages following duplexed until I turn
it off?
/pdfSetup {
3 1 roll 2 array astore
/setpagedevice where {
pop 3 dict begin
/PageSize exch def
/ImagingBBox null def
/Policies 1 dict dup begin /PageSize 3 def end def
{ /Duplex true def } if
currentdict end setpagedevice
} {
pop pop
} ifelse
} def
Under what circumstances will duplex be true in the code below? Also,
will pdfSetup need to be invoked each time to set duplex for each page?
Once duplex is turned on, are all pages following duplexed until I turn
it off?
/pdfSetup {
3 1 roll 2 array astore
/setpagedevice where {
pop 3 dict begin
/PageSize exch def
/ImagingBBox null def
/Policies 1 dict dup begin /PageSize 3 def end def
{ /Duplex true def } if
currentdict end setpagedevice
} {
pop pop
} ifelse
} def