Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1
-
None
-
I'm currently testing in windows only, but should apply to all
Description
This patch adds the following:
- Supports color printing
- Replaces the run-length compression routine with one that will try run-length, tagged image file format, delta row and if need be unencoded, which ever is smallest.
- Handles images set to the left of the printable area, it will clip the image by not sending down those bits.
The code currently has these issues (and would love suggestions on how to do it):
- Need a way to specify if the printer supports color. You will get garbage if you send color commands to an old black and white printer (although most newer black and white printers will emulate color with greyscale). It is currently controlled in the code with this line "final boolean printerSupportsColor=true;"
- Color images are currently not scaled. This is because the application I'm writing only expects FOP files with SVG. And SVG is always rendered to a 300 dpi 24 bit color image before being sent to the PCL module. This works for me.
- Should have a attribute for setting speed vs size of PCL output.