User-agent: Mozilla Thunderbird 1.0.5 (Windows/20050711)
Nick Howes wrote:
My app needs to print Java2D and it works OK, but I get complaints
about the large margins around the printed image. I've been doing some
investigation and it appears that java.awt.print.PageFormat objects
always have a one inch margin, despite being passed through a
PrinterJob pageDialog() method with a printer that can have much
smaller margins. I found some stuff at Sun about using
javax.print.PrintService and MediaPrintableArea, but I don't get a
MediaPrintableArea returned under Mac OS X (at least I don't with
1.4.2_07).
Anyone dealt with this stuff before and willing to share some insight?
Yes, that's problem I've came across. It seems that following
customizations in PageDialog are not actually reflected in PageFormat:
- custom margins
- custom paper size
- reverse landscape orientation
- scale
This bug is present in all Java 1.4.x AWT printing implementations for
Mac OS X I've seen so far and is fully reproducible with standard
Font2DTest demo.
You may try to use javax.print services if your minimal system is Tiger.
Those classes were reimplemented over CUPS and seem to be working now.
--
Illya Kysil
Java technology scientist
Software MacKiev
-----------------------------------------------------------------------------
Shakespeare / King Henry IV
GLENDOWER I can call spirits from the vasty deep.
HOTSPUR Why, so can I, or so can any man;
But will they come when you do call for them?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden