Title: Message
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jan Blok
Sent: Saturday, April 03, 2004 4:27 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] loosing borders in itext 1.02b and other problems

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.
 
That's a problem with the iText implementation of Graphics2D.create(), the copies are inserted at the end and not when they are invoked. It's in my to-do list but not at the top.
 
 
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) 
 
 
Ok. 
3) In the pdf test2_win.pdf there are also gray rectangles appearing, which are not seen in the test2_native_mac.pdf 
 
 
Probably the same as 1) 
 
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. 
 
Document.setPageSize(...). For the first page do it befoe calling open().
 
Best Regards,
Paulo Soares 
 
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

Reply via email to