Message
Hi,
I have some issues:
1)
When I print via
PDFContentByte.createGraphics(...) most of the borders are lost, see differences
in attachments
test1_screenshot1_win.jpg and
test1_screenprint_win.pdf.
2) Again printing via
PDFContentByte.createGraphics(...) on Mac major loss of content see the
differences in test2_mac.pdf,test2_win.pdf compared with native MacOSX
test2_native_mac.pdf which is correct and
wanted result.
When printing on Mac the following error is
occurring:
java.lang.IllegalArgumentException: null
incompatible with
Text-specific antialiasing enable key
at java.awt.RenderingHints.put(RenderingHints.java:482)
at com.lowagie.text.pdf.PdfGraphics2D.setRenderingHint(Unknown
Source)
at apple.laf.AquaUtils.endFont(AquaUtils.java:40)
at apple.laf.AquaLabelUI.paint(AquaLabelUI.java:32)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
Maybe it is an
idea to do the call "setRenderingHint" in a try catch, so not the entire output
crashes (I know this is a bug from apple but still would be a plus when more
content is printed correctly)
3) In
the pdf test2_win.pdf there are also gray rectangles appearing, which are not
seen in the test2_native_mac.pdf
4) I found it also impossible to make a
Landscape page in the PDF with the current API, when I specify a bigger
with than height (which is landscape) which is only possible to do via
PDFContentByte it does not rotate the page...so I wonder how this should be
done.
Kind Regards
Jan Blok
Servoy