You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Antoine Ribes (JIRA)" <ji...@apache.org> on 2016/02/29 13:50:18 UTC
[jira] [Created] (PDFBOX-3254) Corrupted XMP causes
java.lang.StringIndexOutOfBoundsException
Antoine Ribes created PDFBOX-3254:
-------------------------------------
Summary: Corrupted XMP causes java.lang.StringIndexOutOfBoundsException
Key: PDFBOX-3254
URL: https://issues.apache.org/jira/browse/PDFBOX-3254
Project: PDFBox
Issue Type: Bug
Components: Preflight
Affects Versions: 2.0.0
Reporter: Antoine Ribes
Using preflight version 2.0.0-RC3, the validation of the document "bad-fmt-95-m28154.pdf" causes the exception :
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1911)
at org.apache.xmpbox.xml.DomXmpParser.parseInitialXpacket(DomXmpParser.java:671)
at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:139)
at org.apache.pdfbox.preflight.process.MetadataValidationProcess.validate(MetadataValidationProcess.java:69)
at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:122)
at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:163)
For this document, http://www.pdf-tools.com/ gives the error message :
bad-fmt-95-m28154.pdf does not conform to PDF/A.
Validating file "bad-fmt-95-m28154.pdf" for conformance level pdfa-1a
Invalid content of XMP packet header attribute 'begin': ' '.
The document does not conform to the requested standard.
The document's meta data is either missing or inconsistent or corrupt.
Done.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org