[
https://issues.apache.org/jira/browse/PDFBOX-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695010#comment-13695010
]
Eric Leleu commented on PDFBOX-1630:
------------------------------------
Hi,
According to the PDF reference every String can be encoded in a PDF excepted
Strings of the trailer ID and elements of the Encrypt dictionary.
I handled the error and create the validation code 7.12 (Dictionary Info
Corrupt)
In attachment the patch that fixes the problem.
I have committed this patch in the trunk under the revision r1497532.
BR,
Eric
> An interesting Exception error
> ------------------------------
>
> Key: PDFBOX-1630
> URL: https://issues.apache.org/jira/browse/PDFBOX-1630
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 1.8.2
> Environment: RedHat Linux
> Reporter: William Fausser
> Assignee: Eric Leleu
> Attachments: a7060f.pdf, PDFBox-1630.patch
>
>
> ./Non-PFDA/a7060f.pdf :: Exception in thread "main"
> org.apache.pdfbox.preflight.exception.ValidationException: Failed while
> validating
> at
> org.apache.pdfbox.preflight.process.MetadataValidationProcess.validate(MetadataValidationProcess.java:154)
> 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)
> Caused by: org.apache.pdfbox.preflight.exception.ValidationException: Cannot
> treat Document Information CreationDate property
> at
> org.apache.pdfbox.preflight.metadata.SynchronizedMetaDataValidation.formatAccessException(SynchronizedMetaDataValidation.java:525)
> at
> org.apache.pdfbox.preflight.metadata.SynchronizedMetaDataValidation.analyzeCreationDateProperty(SynchronizedMetaDataValidation.java:352)
> at
> org.apache.pdfbox.preflight.metadata.SynchronizedMetaDataValidation.validateMetadataSynchronization(SynchronizedMetaDataValidation.java:482)
> at
> org.apache.pdfbox.preflight.process.MetadataValidationProcess.validate(MetadataValidationProcess.java:82)
> ... 5 more
> Caused by: java.io.IOException: Error converting
> date:ê÷µ{áÊmÑÀ˜hł†Ã
> at
> org.apache.pdfbox.util.DateConverter.toCalendar(DateConverter.java:294)
> at
> org.apache.pdfbox.util.DateConverter.toCalendar(DateConverter.java:168)
> at org.apache.pdfbox.cos.COSDictionary.getDate(COSDictionary.java:797)
> at
> org.apache.pdfbox.pdmodel.PDDocumentInformation.getCreationDate(PDDocumentInformation.java:210)
> at
> org.apache.pdfbox.preflight.metadata.SynchronizedMetaDataValidation.analyzeCreationDateProperty(SynchronizedMetaDataValidation.java:347)
> ... 7 more
--
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