You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Commented JIRA)" <ji...@apache.org> on 2012/02/13 16:06:59 UTC

[jira] [Commented] (PDFBOX-1172) COSNumber throws IOException

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

Andreas Lehmkühler commented on PDFBOX-1172:
--------------------------------------------

@Stanislav
Can you provide us with a sample pdf? According to the specs conforming pdfs shall not use an exponential format for numbers.
                
> 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