[
https://issues.apache.org/jira/browse/PDFBOX-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13694040#comment-13694040
]
Petras commented on PDFBOX-1632:
--------------------------------
I see that the patch introduced new constant field in PreflightConstants class
having the same error code "1.2.13" as already indicated in another field. I
guess it wasn't meant to be the same:
+ /**
+ * The stream can't be processed
+ */
+ String ERROR_SYNTAX_STREAM_DAMAGED = "1.2.13";
String ERROR_SYNTAX_NOCATALOG = "1.2.13";
> 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