Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.18
-
None
Description
I have a document (see attachment) for which PDFbox/FontBox produces the following stacktrace:
Exception in thread "main" java.lang.NumberFormatException: For input string: "E-00048828125"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at java.lang.Double.valueOf(Double.java:502)
at org.apache.fontbox.cff.CFFParser.readRealNumber(CFFParser.java:415)
at org.apache.fontbox.cff.CFFParser.readEntry(CFFParser.java:278)
at org.apache.fontbox.cff.CFFParser.readDictData(CFFParser.java:244)
at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:422)
at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:122)
at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:75)
at org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>(PDType1CFont.java:102)
at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:74)
at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)
at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:66)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483)
at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
at org.apache.pdfbox.text.LegacyPDFStreamEngine.processPage(LegacyPDFStreamEngine.java:139)
at org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.java:391)
at org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.java:319)
at org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:266)
at org.apache.pdfbox.tools.ExtractText.extractPages(ExtractText.java:377)
at org.apache.pdfbox.tools.ExtractText.startExtraction(ExtractText.java:274)
at org.apache.pdfbox.tools.ExtractText.main(ExtractText.java:97)
at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:60)
Attachments
Attachments
Issue Links
- is related to
-
TIKA-3031 NumberFormatException while parsing a certain PDF document
- Resolved