steven0lisa / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

java.lang.NoSuchMethodError: com.lowagie.text.pdf.BaseFont.getCharBBox(C)[I with itext 2.1.7 #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
 InputStream convert(InputStream fileInputStream) {
        try{

        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        factory.setNamespaceAware(false);
        DocumentBuilder builder = factory.newDocumentBuilder();
        Document document = builder.parse(fileInputStream)

        ITextRenderer renderer = new ITextRenderer()
        renderer.setDocument(document,"")

        InputStream inputStream = new PipedInputStream()
        OutputStream outputStream = new PipedOutputStream( inputStream )
        renderer.createPDF( outputStream )
        }
        catch( DocumentException e ){
            e.printStackTrace()
        }
        return inputStream
    }

What is the expected output? What do you see instead?
Expected output is no exception. I see
java.lang.NoSuchMethodError: com.lowagie.text.pdf.BaseFont.getCharBBox(C)[I

What version of the product are you using? On what operating system?
R8 with itext 2.1.7

Original issue reported on code.google.com by StefanKe...@gmail.com on 14 Mar 2011 at 7:18

GoogleCodeExporter commented 9 years ago
Unfortunately there is a binary (but not source) incompatibility between iText 
2.0.x and iText 2.1.x.  In short, if you recompile R8 against iText 2.1.x / 4.x 
it will work fine.  master / HEAD uses iText 2.1.x too.

Original comment by Peter.Br...@gmail.com on 24 Mar 2011 at 1:02

GoogleCodeExporter commented 9 years ago
I'm not going to recompile. I only use maven-central deployed JARs; anything 
else would lead to madness. Is there a roadmap for the next release that will 
be deployed to maven central?

Original comment by StefanKe...@gmail.com on 24 Mar 2011 at 1:32

GoogleCodeExporter commented 9 years ago
This issue was reported almost two years ago and still not fixed.

http://java.net/jira/browse/XHTMLRENDERER-281

Original comment by ppet...@gmail.com on 28 Mar 2011 at 12:26

GoogleCodeExporter commented 9 years ago
I am also uncomfortable recompiling. Is there any movement on getting the 
binary updated any time soon?

Original comment by lee.c.george on 12 Oct 2011 at 10:38

GoogleCodeExporter commented 9 years ago
is there any chance that this issue will be solved?!

Original comment by hicham.g...@gmail.com on 14 Oct 2011 at 2:49