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

Eric Leleu commented on PDFBOX-1632:
------------------------------------

Hi,

You are right, this is a mistake and the right value should be 1.2.14

    /**
     * The stream can't be processed
     */
    String ERROR_SYNTAX_STREAM_DAMAGED = "1.2.13";
    /**
     * There are no catalog dictionary in the PDF File
     */
    String ERROR_SYNTAX_NOCATALOG = "1.2.14";

This is fixed in the revision r1497507.

Thanks you.

BR,
Eric
                
> Exception with validation
> -------------------------
>
>                 Key: PDFBOX-1632
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1632
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.8.2
>         Environment: Redhat Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 2.0.0
>
>         Attachments: PDFBox-1632.patch, simple-openoffice.pdf
>
>
> ./pdfbox-1.5.0/pdfbox/target/test-classes/input/simple-openoffice.pdf :: 
> Exception in thread "main" 
> org.apache.pdfbox.preflight.exception.ValidationException: Unable to process 
> an element if it is null.
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:47)
>       at 
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateResources(SinglePageValidationProcess.java:158)
>       at 
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:77)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:74)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:49)
>       at 
> org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:56)
>       at 
> org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:45)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:74)
>       at 
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:88)
>       at 
> org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:168)
>       at 
> org.apache.pdfbox.preflight.Validator_A1b.runSimple(Validator_A1b.java:158)
>       at 
> org.apache.pdfbox.preflight.Validator_A1b.main(Validator_A1b.java:125)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to