Re: [iText-questions] Exception when printing PDF on Mac
Thats great news! Thanks a lot. Christoph Wagner > -Original Message- > From: [EMAIL PROTECTED] [mailto:itext- > [EMAIL PROTECTED] On Behalf Of Paulo Soares > Sent: Monday, January 15, 2007 10:08 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Exception when printing PDF on Mac > > It will be in the next release. > > Paulo > > - Original Message - > From: "Christoph Wagner" <[EMAIL PROTECTED]> > To: > Sent: Monday, January 15, 2007 8:43 PM > Subject: [iText-questions] Exception when printing PDF on Mac > > > > Hi, > > > > I have a problem printing a PDF on Mac using the latest iText version > > 1.4.8. > > I get the following exception: > > > > java.lang.IllegalArgumentException: null incompatible with Text- > specific > > antialiasing enable key > > at java.awt.RenderingHints.put(RenderingHints.java:484) > > at com.lowagie.text.pdf.PdfGraphics2D.setRenderingHint(Unknown > > Source) > > at apple.laf.AquaUtils.endFont(AquaUtils.java:40) > > at apple.laf.AquaTextPaneUI.paintSafely(AquaTextPaneUI.java:77) > > at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:782) > > at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:761) > > at javax.swing.JComponent.paintComponent(JComponent.java:742) > > at javax.swing.JComponent.paint(JComponent.java:1005) > > > > The problem seems to be an invalid null value for the antialiasing > key > > that > > is pushed from the aqua UI classes to iText and fails in > > java.awt.RenderingHints. I tried to workaround this problem with > changing > > the com.lowagie.text.pdf.PdfGraphics2D.setRenderingHint method to: > > > >public void setRenderingHint(Key arg0, Object arg1) { > >if (arg1 != null) { > >rhints.put(arg0, arg1); > >} > >else { > >rhints.remove (arg0); > >} > >} > > > > This fix works very well in all my testcases and should have no > effect in > > any other environment as the value parameter is not null usually. Any > > chance > > that this fix will be included in one of the upcoming releases? > > > > Thanks > > Christoph Wagner > > > > > > > > > > - > > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > share > > your > > opinions on IT & business topics through brief surveys - and earn > cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD > EV > > ___ > > iText-questions mailing list > > iText-questions@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://itext.ugent.be/itext-in-action/ > > > --- > -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD > EV > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
Re: [iText-questions] Exception when printing PDF on Mac
It will be in the next release. Paulo - Original Message - From: "Christoph Wagner" <[EMAIL PROTECTED]> To: Sent: Monday, January 15, 2007 8:43 PM Subject: [iText-questions] Exception when printing PDF on Mac > Hi, > > I have a problem printing a PDF on Mac using the latest iText version > 1.4.8. > I get the following exception: > > java.lang.IllegalArgumentException: null incompatible with Text-specific > antialiasing enable key > at java.awt.RenderingHints.put(RenderingHints.java:484) > at com.lowagie.text.pdf.PdfGraphics2D.setRenderingHint(Unknown > Source) > at apple.laf.AquaUtils.endFont(AquaUtils.java:40) > at apple.laf.AquaTextPaneUI.paintSafely(AquaTextPaneUI.java:77) > at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:782) > at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:761) > at javax.swing.JComponent.paintComponent(JComponent.java:742) > at javax.swing.JComponent.paint(JComponent.java:1005) > > The problem seems to be an invalid null value for the antialiasing key > that > is pushed from the aqua UI classes to iText and fails in > java.awt.RenderingHints. I tried to workaround this problem with changing > the com.lowagie.text.pdf.PdfGraphics2D.setRenderingHint method to: > >public void setRenderingHint(Key arg0, Object arg1) { >if (arg1 != null) { >rhints.put(arg0, arg1); >} >else { >rhints.remove (arg0); >} >} > > This fix works very well in all my testcases and should have no effect in > any other environment as the value parameter is not null usually. Any > chance > that this fix will be included in one of the upcoming releases? > > Thanks > Christoph Wagner > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
[iText-questions] Exception when printing PDF on Mac
Hi, I have a problem printing a PDF on Mac using the latest iText version 1.4.8. I get the following exception: java.lang.IllegalArgumentException: null incompatible with Text-specific antialiasing enable key at java.awt.RenderingHints.put(RenderingHints.java:484) at com.lowagie.text.pdf.PdfGraphics2D.setRenderingHint(Unknown Source) at apple.laf.AquaUtils.endFont(AquaUtils.java:40) at apple.laf.AquaTextPaneUI.paintSafely(AquaTextPaneUI.java:77) at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:782) at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:761) at javax.swing.JComponent.paintComponent(JComponent.java:742) at javax.swing.JComponent.paint(JComponent.java:1005) The problem seems to be an invalid null value for the antialiasing key that is pushed from the aqua UI classes to iText and fails in java.awt.RenderingHints. I tried to workaround this problem with changing the com.lowagie.text.pdf.PdfGraphics2D.setRenderingHint method to: public void setRenderingHint(Key arg0, Object arg1) { if (arg1 != null) { rhints.put(arg0, arg1); } else { rhints.remove (arg0); } } This fix works very well in all my testcases and should have no effect in any other environment as the value parameter is not null usually. Any chance that this fix will be included in one of the upcoming releases? Thanks Christoph Wagner - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/