pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Green <james.mk.gr...@gmail.com>
Subject Re: 1.8.0: NoSuchMethodError
Date Mon, 25 Mar 2013 17:51:49 GMT
Yep mvn dependency:tree shows the culprit I'll attack that later.

Thanks
James



On 25 March 2013 16:42, Andreas Lehmkuehler <andreas@lehmi.de> wrote:

> Hi,
>
> Am 25.03.2013 17:21, schrieb James Green:
>
>  Getting a new stack trace once I upgraded to 1.8.0:
>>
>> 16:12:17,515  WARN org.apache.pdfbox.util.**PDFStreamEngine:359
>> processEncodedText() - java.lang.NoSuchMethodError:
>> org.apache.fontbox.cmap.CMap.**getSpaceMapping()I
>> java.lang.NoSuchMethodError: org.apache.fontbox.cmap.CMap.**
>> getSpaceMapping()I
>> at
>> org.apache.pdfbox.pdmodel.**font.PDSimpleFont.**
>> getSpaceWidth(PDSimpleFont.**java:525)
>> at
>> org.apache.pdfbox.util.**PDFStreamEngine.**processEncodedText(**
>> PDFStreamEngine.java:355)
>> at
>> org.apache.pdfbox.util.**operator.ShowTextGlyph.**
>> process(ShowTextGlyph.java:62)
>> at
>> org.apache.pdfbox.util.**PDFStreamEngine.**processOperator(**
>> PDFStreamEngine.java:554)
>> at
>> org.apache.pdfbox.util.**PDFStreamEngine.**processSubStream(**
>> PDFStreamEngine.java:268)
>> at
>> org.apache.pdfbox.util.**PDFStreamEngine.**processSubStream(**
>> PDFStreamEngine.java:235)
>> at
>> org.apache.pdfbox.util.**PDFStreamEngine.processStream(**
>> PDFStreamEngine.java:215)
>> at
>> org.apache.pdfbox.util.**PDFTextStripper.processPage(**
>> PDFTextStripper.java:455)
>> at
>> org.apache.pdfbox.util.**PDFTextStripper.processPages(**
>> PDFTextStripper.java:379)
>> at
>> org.apache.pdfbox.util.**PDFTextStripper.writeText(**
>> PDFTextStripper.java:335)
>> at org.apache.pdfbox.util.**PDFTextStripper.getText(**
>> PDFTextStripper.java:254)
>>
>> Usage:
>>
>>          PDFTextStripper stripper = new PDFTextStripper();
>>          stripper.setStartPage(**pageNumber);
>>          stripper.setEndPage(**pageNumber);
>>          String content = stripper.getText(rendered);
>>
>> Where rendered is of type PDDocument.
>>
>> This comes after performing a mvn clean install of our project. Reverting
>> back to 1.7.1 avoids the stack trace.
>>
>> Any ideas on this one at all?
>>
> Did you update all subprojects of PDFBox? Sounds like a version mismatch
> between
> pdfbox and fontbox.
>
>
>> Thanks,
>>
>> James
>>
>
> BR
> Andreas Lehmkühler
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message