Hello,

Flying saucer R8 (https://xhtmlrenderer.dev.java.net/) uses iText 2.0.8 and it 
works just fine.

When using iText 2.1.2+ with flying saucer R8, there's the following exception :
java.lang.NoSuchMethodError: com/lowagie/text/pdf/BaseFont.getCharBBox(C)[I
    at 
org.xhtmlrenderer.pdf.ITextFontResolver$FontDescription.setMetricDefaults(ITextFontResolver.java:679)

It appears iText broke binary compatibility on method BaseFont.getCharBBox (see 
[1]).

Before 2.1.2, the method was :
public int[] getCharBBox(char c)

With iText 2.1.2+, the method changed to (the change was made with revision 
3369 of BaseFont) :
public int[] getCharBBox(int c)

Could you restore the old method signature, or should I ask on flyingsaucer 
forum to modify flyingsaucer source code base  ?

Thanks for you time

[1] 
http://markmail.org/message/n2hpwywdjd7xvt64#query:itext%20getCharBBox+page:1+mid:md5k3pbszsch5npx+state:results



      
------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to