From: <doc...@us...> - 2007-07-26 18:33:20
|
Revision: 129 http://openpcl.svn.sourceforge.net/openpcl/?rev=129&view=rev Author: documentsystems Date: 2007-07-26 11:33:23 -0700 (Thu, 26 Jul 2007) Log Message: ----------- Howard Hoagland. In PosPrintPages in addpclBytesforPrintingFormNames(), changed the hard coded pixels from bottom edge of page of 205 in 3 lines to be the int variable tNumPixelsFromPageEdge with value 210, so that the bottom of the text of the form names at the bottom of the page, won't get chopped off due to it was too low to fit in the printabe area. This was needed for 8 point font. Using 6 point font then 205 is OK. Modified Paths: -------------- openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java Modified: openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java =================================================================== --- openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java 2007-07-26 18:29:28 UTC (rev 128) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java 2007-07-26 18:33:23 UTC (rev 129) @@ -438,9 +438,10 @@ // Return if form name is null or blank if (pFormName == null || pFormName.length() < 1) { return; } - int tYPosForLetterPortrait = (300 * 11) - 205; - int tYPosForLegalPortrait = (300 * 14) - 205; - int tYPosforLetterOrLegalLandscape =(int)(Math.round(300 * 8.5d) - 205); + final int tNumPixelsFromPageEdge = 210; + final int tYPosForLetterPortrait = (300 * 11) - tNumPixelsFromPageEdge; + final int tYPosForLegalPortrait = (300 * 14) - tNumPixelsFromPageEdge; + final int tYPosforLetterOrLegalLandscape =(int)(Math.round(300 * 8.5d) - tNumPixelsFromPageEdge); // Default to Legal Portrait Y position int tYPosForFormName = tYPosForLegalPortrait; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |