epic fail :-(

I've opened
https://issues.apache.org/jira/browse/PDFBOX-2621

Tilman

Am 21.01.2015 um 12:31 schrieb Julien Béti:
Hello,

Attached, you'll find a sample java code which creates a PDF/A-1b file using CreatePDFA sample [1], and then immediately tries to validate it using Preflight as described in Cookbook [2]

The validation fails with the following error:
--8<----------------
The file/tmp/test.pdf is not valid, error(s) :
7.1 : Error on MetaData, xmp should start with a processing instruction
-->8----------------

I'm using PDFBox to generates PDF/A files which are validated by an application which obviously uses PDFBox for validation, and my PDF files are rejected for the moment, with the same error.

Could you please tell me what's missing in CreatePDFA sample to make it pass the validation?

Kind Regards,

Julien.

[1] http://svn.apache.org/viewvc/pdfbox/branches/1.8/examples/src/main/java/org/apache/pdfbox/examples/pdfa/CreatePDFA.java?revision=1620380&view=markup
[2] http://pdfbox.apache.org/1.8/cookbook/pdfavalidation.html

Reply via email to