Hi,

You could try https://xmlgraphics.apache.org/fop/2.2/output.html#pcl-duplex-mode

Thanks

-----Original Message-----
From: Warren Young [mailto:war...@etr-usa.com] 
Sent: 07 September 2017 03:18
To: fop-users@xmlgraphics.apache.org
Subject: Duplex printing via PCL or PS

I needed to duplex-print the output of fop, so I came up with this heavy-handed 
solution:

    $ fop -q -fo x.fo -pdf - |
      gs -sDEVICE=pxlmono -dDuplex -q -o - |
      nc $myprinter 9100

The changes necessary to make that work for PS output should be obvious.

A much more lightweight solution would be for FOP to emit the necessary printer 
code within the PCL or PS output, rather than send it through Ghostscript to be 
completely reprocessed.  It could be tied to a new command line option, e.g. 
-duplex=long.

I tried sending the PCL code to enable long-edge duplexing to the printer 
before sending the fop -pcl output to the printer, but it didn’t have any 
effect, apparently because the fop -pcl output resets the printing mode somehow.

(See: http://www.pclviewer.com/resources/reference/)

I’m posting for two reasons:

1. To get my heavy-handed solution out into the world.

2. To try and get someone interested in implementing my lightweight 
alternative.  Ideally, both PCL and PS outputs would get this feature, but if 
it’s only one, we’d prefer PCL, since it renders faster on most printers.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to