we are experiencing strange results when printing images and text
using the jdk1.2fcs under WinNT.
We do use the new Printer APIs of Java2D, and can print text rather
good right now, after
finding that the print() method gets called usually twice, once with
the identical transformation
and then with a transformation that scales the 72dpi into the real
printer resolution. Before finding
that, we just defined our one transformation which replaced the preset
one, thus the output was always
to small.
If we now mix text and BufferedImages output, the printer prints the
graphics ok, but the
text is either just a group of boxes or some strange characters. If
we use the same program,
but skip the graphics, everything works ok. We also found out,
that the transformation
used, has now a negative scaling factor.
We thought about changing the transformation given with the print() method,
in order to
do the translating by hand, but I don't know if thats a good solution.
Anybody experienced similar problems, and knows how to solve them?
We certainly can't give our customers a scissor and some glue to paste
the graphics manually into
the text.
We also experience that the printing gets really slow, when mixing BufferedImages
and Text.
Drawing simple lines together with text, works though.
-- Knut H. Meyer Phone: +49-711/13353-44 FAX: +49-711/1335353 Email: [EMAIL PROTECTED] D A N E T - IS GmbH Waldburgstrasse 17 - 19, D-70563 Stuttgart
