From: <doc...@us...> - 2007-09-25 23:36:34
|
Revision: 174 http://openpcl.svn.sourceforge.net/openpcl/?rev=174&view=rev Author: documentsystems Date: 2007-09-25 16:36:34 -0700 (Tue, 25 Sep 2007) Log Message: ----------- Howard Hoagland. Add call to mPriPageSettings.setDuplexMode() when the duplex PCL command &l#S is parsed. Previously, all duplex cmds were being stripped out and not put back in one time at the top of the PCL bytes. Now, it strips out all duplex PCL cmds, then if the use picks Duplex=Yes on the print options dialog, then put in one duplex On command at the top of the PCL bytes. Modified Paths: -------------- openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java Modified: openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java =================================================================== --- openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java 2007-09-25 23:31:13 UTC (rev 173) +++ openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java 2007-09-25 23:36:34 UTC (rev 174) @@ -414,7 +414,8 @@ } else if (cmdCharArray[3] == 'O') { //&l,O // TODO Page orientation Portrait or Landscape } else if (cmdCharArray[3] == 'S') { //&l,S - // TODO Simplex/Duplex + // Duplex mode. 0=off (simplex), 1=Duplex on Long Edge of page, 2=Duplex on Short Edge of page + mPriPageSettings.setDuplexMode(cmdValueInt); } else if (cmdCharArray[3] == 'X') { //&l,X // TODO Number of Copies } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |