Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.12, 1.8.13, 2.0.3, 3.0.0 PDFBox
-
None
Description
As reported by Simon Gaeremynck in the user mailing list with attached file.
[3] Stack trace: [error] at org.apache.pdfbox.cos.COSFloat.<init>(COSFloat.java:81) [error] at org.apache.pdfbox.cos.COSNumber.get(COSNumber.java:115) [error] at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:939)
His proposed change in COSFloat
- if (aFloat.matches("^0\\.0+\\-\\d+")) + if (aFloat.matches("^0\\.0*\\-\\d+"))
I'll commit it after running regression tests.
Attachments
Attachments
Issue Links
- is related to
-
PDFBOX-5015 Error expected floating point number actual='-7-8'
- Open
-
PDFBOX-4064 cm operator has 7 numbers
- Closed
-
PDFBOX-5829 IOException: Error expected floating point numberactual='-12.-1'
- Closed
- relates to
-
PDFBOX-2990 PDDocument.load fails to load a PDF document.
- Closed
-
PDFBOX-3369 Error expected floating point number actual='0.00-35095424'
- Closed