You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2014/12/05 10:13:13 UTC

[jira] [Comment Edited] (PDFBOX-2538) avoid "-1 : Unknown error"

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

Maruan Sahyoun edited comment on PDFBOX-2538 at 12/5/14 9:12 AM:
-----------------------------------------------------------------

-deleted-IMHO if the resource is referenced in the xref it should be checked.-deleted-

I gave it another thought. It should be fine to check resources at the time they are used as resources which are never used will not be part of the presentation. 

The only issue I see is if an unused resource leads to a parsing error. At that point in time we would not know if it’s used later on.


was (Author: msahyoun):
IMHO if the resource is referenced in the xref it should be checked.

> 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)