[
https://issues.apache.org/jira/browse/PDFBOX-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14235251#comment-14235251
]
Tilman Hausherr commented on PDFBOX-2538:
-----------------------------------------
The problem is that the xobjects are checked twice per page: once in the
resource check, and at least once when the content stream is processed. Makes
me think about ignoring them in the resource check, i.e.
ResourcesValidationProcess.validateXObjects(). Would it be a "bad thing" if
there is a bad XObject resource but that is never used in a content stream?
> avoid "-1 : Unknown error"
> --------------------------
>
> Key: PDFBOX-2538
> URL: https://issues.apache.org/jira/browse/PDFBOX-2538
> Project: PDFBox
> Issue Type: Sub-task
> Components: Preflight
> Affects Versions: 2.0.0
> Reporter: Ralf Hauser
> Priority: Minor
> Fix For: 2.1.0
>
>
> e.g. error 4 in PDFBOX-2513
> after all, we know what the reason is.
> Ideas:
> 1) create COSStreamException extends IOException in COSStream.java
> 2) in SinglePageValidationProcess.validateContent() examine the root cause
> exception type to classify smarter than just ERROR_UNKOWN_ERROR
> any other thoughts?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)