com.openpcl.pclrenderimage.util
Class PriModifyPclBytes
java.lang.Object
com.openpcl.pclrenderimage.util.PriModifyPclBytes
- All Implemented Interfaces:
- PclCommandEvent
public class PriModifyPclBytes
- extends Object
- implements PclCommandEvent
Modify the PCL bytes.
1. Remove form feed chars (FF = ^L = 12) but not FF chars in raster data.
2. Remove printer resets (ESC E)
3. Remove paper size commands (ESC & l # A) where Letter=2, Legal=3, there's more...
4. Remove paper source commands (ESC & l # H) where specific tray=1 and manual feed=2, lower tray=4, there's more...
5. Remove duplex commands (ESC & l # S) where Duplex=1,2 and Simplex=0
6. Remove number of copies (ESC & l # X).
- Author:
- DocMagic, Document Systems Inc, HowardH 6/13/07
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PriModifyPclBytes
public PriModifyPclBytes()
initializeState
public void initializeState()
getModifiedPclBytes
public byte[] getModifiedPclBytes()
charFoundEvent
public void charFoundEvent(char pNextChar,
int pBufferPos)
- Specified by:
charFoundEvent
in interface PclCommandEvent
commandFoundEvent
public void commandFoundEvent(String pCmdLeadin,
String pCmdValue,
String pCmdTerminator,
byte[] pCmdData,
int pBufferPos)
- Specified by:
commandFoundEvent
in interface PclCommandEvent
OpenPCL http://www.openpcl.com