pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Munn <and...@nmedia.net>
Subject wrong FontBox?? NoSuchMethodError: org.apache.fontbox.afm.AFMParser.parse
Date Fri, 13 Mar 2015 16:31:16 GMT
I have these in my classpath

fontbox-1.8.5.jar
pdfbox-2.0.0-20150312.230035-1150.jar

and when I call pdfRenderer.renderImageWithDPI(...) I get:

Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.fontbox.afm.AFMParser.parse()Lorg/apache/fontbox/afm/FontMetrics;
org.apache.pdfbox.pdmodel.font.Standard14Fonts.addAFM(Standard14Fonts.java:119)
org.apache.pdfbox.pdmodel.font.Standard14Fonts.addAFM(Standard14Fonts.java:98)
org.apache.pdfbox.pdmodel.font.Standard14Fonts.<clinit>(Standard14Fonts.java:51)
org.apache.pdfbox.pdmodel.font.PDFont.<init>(PDFont.java:99)
org.apache.pdfbox.pdmodel.font.PDSimpleFont.<init>(PDSimpleFont.java:84)
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.<init>(PDTrueTypeFont.java:116)
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:75)
org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:93)
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:50)
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:802)
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:464)
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:438)
org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:178)
org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:62)
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:802)
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:464)
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:438)
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149)
org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:147)
org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:203)
org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:136)
org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:95)

Is there a 2.0.0 fontbox I need someplace?

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message