pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Douglas <edoug...@blockhouse.com>
Subject Re: wrong FontBox?? NoSuchMethodError: org.apache.fontbox.afm.AFMParser.parse
Date Fri, 13 Mar 2015 18:38:30 GMT
I downloaded a trunk snapshot, which included fontbox-2.0.0.jar in
/pdfbox-trunk/fontbox/target
The pdfbox-trunk folder includes
app
examples
fontbox
parent
pdfbox
preflight
preflight-app
tools
xmpbox


On Fri, Mar 13, 2015 at 12:31 PM, Andrew Munn <andrew@nmedia.net> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message