From: <doc...@us...> - 2007-07-26 18:20:13
|
Revision: 126 http://openpcl.svn.sourceforge.net/openpcl/?rev=126&view=rev Author: documentsystems Date: 2007-07-26 11:20:14 -0700 (Thu, 26 Jul 2007) Log Message: ----------- In each of the 4 files IOpenPCL, IPclRenderImage, OpenPCLViewer, IPclRenderImage, in the method getImageForPage(), added the parameter byte[] pPrintTimePclBytes and code in the methods to implement the "Print Form Names" for Windows Print (PCL Direct print was already implemented previously). Modified Paths: -------------- openpcl/src/com/openpcl/pclrenderimage/api/IPclRenderImage.java openpcl/src/com/openpcl/viewer/api/IOpenPCL.java Modified: openpcl/src/com/openpcl/pclrenderimage/api/IPclRenderImage.java =================================================================== --- openpcl/src/com/openpcl/pclrenderimage/api/IPclRenderImage.java 2007-07-26 01:27:15 UTC (rev 125) +++ openpcl/src/com/openpcl/pclrenderimage/api/IPclRenderImage.java 2007-07-26 18:20:14 UTC (rev 126) @@ -37,12 +37,14 @@ * In DocMaster, this is getImage(). * * @param pPageNumber. The Pcl page number to render to the image. + * @param pPrintTimePclBytes. Draw these additional PCL bytes on the print image. * @param pIsForPrinting. If true non printing items like signature blocks won't be rendered. * @param pPaperSize. If a paper size is not specified in the PCL, this paper size will be used. "LTR" or "LGL". * @param pZoomFactor. This is mandatory (see note for why). * @return BufferedImage. If null is returned, then call getLastErrorString() */ - public BufferedImage getImageForPage(int pPageNumber, boolean pIsForPrinting, String pPaperSize, double pZoomFactor); + public BufferedImage getImageForPage(int pPageNumber, byte[] pPrintTimePclBytes, + boolean pIsForPrinting, String pPaperSize, double pZoomFactor); /** * Get the last error string. Call this if getImageForPage() returned null instead of returning the BufferedImage. Modified: openpcl/src/com/openpcl/viewer/api/IOpenPCL.java =================================================================== --- openpcl/src/com/openpcl/viewer/api/IOpenPCL.java 2007-07-26 01:27:15 UTC (rev 125) +++ openpcl/src/com/openpcl/viewer/api/IOpenPCL.java 2007-07-26 18:20:14 UTC (rev 126) @@ -66,12 +66,14 @@ * In DocMaster, this is getImage(). * * @param pPageNumber. The Pcl page number to render to the image. + * @param pPrintTimePclBytes. Draw these additional PCL bytes on the print image. * @param pIsForPrinting. If true non printing items like signature blocks won't be rendered. * @param pPaperSize. If a paper size is not specified in the PCL, this paper size will be used. "LTR" or "LGL". * @param pZoomFactor. This is mandatory (see note for why). * @return BufferedImage. If null is returned, then call getLastErrorString() */ - public BufferedImage getImageForPage(int pPageNumber, boolean pIsForPrinting, String pPaperSize, double pZoomFactor); + public BufferedImage getImageForPage(int pPageNumber, byte[] pPrintTimePclBytes, + boolean pIsForPrinting, String pPaperSize, double pZoomFactor); /** * Convenience method that calls PclRenderImage.getLastRenderErrorString(). This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |