pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stanislav Oaserele (Issue Comment Edited) (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (PDFBOX-1172) COSNumber throws IOException
Date Mon, 13 Feb 2012 10:28:59 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-1172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206790#comment-13206790
] 

Stanislav Oaserele edited comment on PDFBOX-1172 at 2/13/12 10:28 AM:
----------------------------------------------------------------------

I had the same problem using PdfBox 1.6.0.

java.io.IOException: Value is not an integer: -8e-05
at org.apache.pdfbox.cos.COSNumber.get(COSNumber.java:96)
at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:1084)
...


Patch and test case attached
                
      was (Author: soaserele):
    I had the same problem usign PdfBox 1.6.0.

java.io.IOException: Value is not an integer: -8e-05
at org.apache.pdfbox.cos.COSNumber.get(COSNumber.java:96)
at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:1084)
...


Patch and test case attached
                  
> COSNumber throws IOException
> ----------------------------
>
>                 Key: PDFBOX-1172
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1172
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>            Reporter: Hiroshi Koyama
>            Priority: Minor
>         Attachments: COSNumberTestCase.java, cosnumber_patch.patch
>
>
> COSNumber.get() throws IOException 'Value is not an integer'.
> The method parameter was '-2e-006'.
> Is my PDF file wrong?
> I cannot upload my PDF file due to copyright. Sorry.
> java.io.IOException: Value is not an integer: -2e-006
> 	at org.apache.pdfbox.cos.COSNumber.get(COSNumber.java:96)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:1084)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseCOSArray(BaseParser.java:802)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:1011)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionaryValue(BaseParser.java:179)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionary(BaseParser.java:292)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:1000)
> 	at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:543)
> 	at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:184)
> 	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1069)
> 	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1036)
> 	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1007)
> 	at PDFBoxTest.main(PDFBoxTest.java:36)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message