From: <doc...@us...> - 2007-07-02 18:35:17
|
Revision: 98 http://openpcl.svn.sourceforge.net/openpcl/?rev=98&view=rev Author: documentsystems Date: 2007-07-02 11:35:20 -0700 (Mon, 02 Jul 2007) Log Message: ----------- Howard Hoagland. Fixed bug where switching to white text using PCL command "ESC * v 1 T" to intentionally put in data in the PCL that won't show when viewed and printed, the text was correctly white text for viewing and printing but when converted to a PDF Acrobat file, the text was blue instead of white. The bug was happening because the text chars are buffered up and written as one string of chars instead of writing the chars one at a time, to make the PDF file smaller. The trigger to write the buffered up chars is on several PCL commands like any cursor position but wasn't on changing the text color. 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-07-02 18:29:48 UTC (rev 97) +++ openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java 2007-07-02 18:35:20 UTC (rev 98) @@ -348,6 +348,7 @@ } else if (cmdCharArray[1] == 'v') { // *v if (cmdCharArray[2] == ',') { if (cmdCharArray[3] == 'T') { // *v,T + mPriDrawText.drawBufferedUpCharsAs1String(); // Set current Pattern. 0=black, 1=white. White text is put on top of rectangle draws sometimes mPriPageSettings.setPrintPattern(cmdValueInt); } else if (cmdCharArray[3] == 'N') { // *v,N This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |