pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siegfried Goeschl (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PDFBOX-1062) PDFTextStripper.getText() causes "java.lang.NoSuchMethodError" for PDSimpleFont.parseCmap
Date Wed, 13 Jul 2011 10:23:59 GMT
PDFTextStripper.getText() causes "java.lang.NoSuchMethodError" for PDSimpleFont.parseCmap
-----------------------------------------------------------------------------------------

                 Key: PDFBOX-1062
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1062
             Project: PDFBox
          Issue Type: Bug
          Components: Text extraction
    Affects Versions: 1.6.0
         Environment: Mac OS X, java version "1.6.0_24", Java HotSpot(TM) 64-Bit Server VM
            Reporter: Siegfried Goeschl
            Priority: Critical


I just upgraded from 1.5.0 to 1.6.0 and my test are failing with the following exception -
also IntelliJ complains when looking at the source code since the only available signature
would be

protected void parseCmap( String cmapRoot, InputStream cmapStream, COSName encodingName )

but the code tries to invoke

parseCmap( resourceRootCMAP, ResourceLoader.loadResource( resourceName ) );

java.lang.NoSuchMethodError: org.apache.pdfbox.pdmodel.font.PDSimpleFont.parseCmap(Ljava/lang/String;Ljava/io/InputStream;)V
	at org.apache.pdfbox.pdmodel.font.PDSimpleFont.determineEncoding(PDSimpleFont.java:396)
	at org.apache.pdfbox.pdmodel.font.PDType1Font.determineEncoding(PDType1Font.java:269)
	at org.apache.pdfbox.pdmodel.font.PDFont.<init>(PDFont.java:181)
	at org.apache.pdfbox.pdmodel.font.PDSimpleFont.<init>(PDSimpleFont.java:83)
	at org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:152)
	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:108)
	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:75)
	at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:115)
	at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:243)
	at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
	at org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:442)
	at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:366)
	at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:322)
	at org.apache.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:242)


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message