DO NOT REPLY [Bug 47805] [PATCH] implements color pcl output

2009-09-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47805



--- Comment #3 from Max Berger m...@berger.name 2009-09-09 23:17:53 PDT ---
Just got an email from Jim, which I will summarize:

- B/W PCL is much smaller than color PCL (therefore, the proposed patch makes a
lot of sense)

- Older Printers cannot print color PCL directly, is has to be converted to b/w
pcl in a separate step.

Now the only question remains if the auto-selection method (as in the patch)
should be used or a configuration method. I personally prefer auto-selection,
but the fop tradition is to be more conservative and let the user decide
through configuration.

Max

And some background reading:
http://en.wikipedia.org/wiki/Printer_Command_Language (Contains Links to PCL
spec)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 47805] [PATCH] implements color pcl output

2009-09-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47805



--- Comment #4 from Jeremias Maerki jerem...@apache.org 2009-09-10 00:25:14 
PDT ---
I'm not seeing any auto-detection in the patch. What do you refer to? The
offline PCL production doesn't allow for bi-directional querying of the printer
to get its capabilities so there can't be any auto-detection anyway.

As Chris noted, not all printers support PCL5C. My Brother HL-1250, for
example, prints out garbage with the patch applied. IMO, it's imperative to
have a configuration option to enable/disable PCL5C functionality.

I see various issues with the patch:
- the output is no longer compatible with PCL5 printers.
- I got ByteArrayOutOfBoundsExceptions with many of my usual test images.
- PJL support is disabled in a hard-coded fashion (Jim, you can disable PJL in
configuration, no need to do that in code:
http://xmlgraphics.apache.org/fop/trunk/output.html#pcl-configuration)
- If I interpreted this correctly from my short test, the color images don't
get scaled if the image is not used in its intrinsic size.
- PCLGenerator.paintBitmap() converts an image to monochrome even though its
later rendered in color which gives away lots of performance. Image conversion
is an expensive operation.
- an updated patch should be a bit closer to FOP's coding style (no tabs in
particular). Also, you should remove your initials spread throughout the code.
Due attribution will be given in the status file and the commit messages.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.