[
https://issues.apache.org/jira/browse/PDFBOX-3896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16127586#comment-16127586
]
Jorge Spinsanti commented on PDFBOX-3896:
-----------------------------------------
Unfortunately, we work with several corrupt files and we don't analyze the
nature of files. We focus in files conversion. IMHO, IOException in too general
to deal with corrupt files and I can't catch them because other problems with
the files can throw IOException.
On the other hand, you can't do anything with corrupt files based on previous
comment in other issues.
What do you think about a new exception CorruptFileException extends
IOException?
> UnsupportedOperationException
> -----------------------------
>
> Key: PDFBOX-3896
> URL: https://issues.apache.org/jira/browse/PDFBOX-3896
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.6
> Reporter: Jorge Spinsanti
> Attachments: UnsupportedOperationException.pdf
>
>
> Stacktrace:
> {code}
> java.lang.UnsupportedOperationException
> at java.util.AbstractList.add(AbstractList.java:148)
> at java.util.AbstractList.add(AbstractList.java:108)
> at
> org.apache.pdfbox.pdfparser.COSParser.parseDictObjects(COSParser.java:611)
> at
> org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:241)
> at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:276)
> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1132)
> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1066)
> at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:141)
> at
> org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]