Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] loosing borders in itext 1.02b and other problems

Jan Blok

2004-04-03


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.
 
All of above can be easily be reproduced with Servoy database front-end which can be found at: www.servoy.com icw the PDF printer found at http://forum.servoy.com/viewforum.php?f=1 (2th item)

Kind Regards
Jan Blok
Servoy

Attachment: test1_screenshot1_win.jpg


Attachment: test1_screenprint_win.pdf

Attachment: test2_win.pdf

Attachment: test2_mac.pdf

Attachment: test2_native_mac.pdf
©2008 junlu.com - Jax Systems, LLC, U.S.A.