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

Marcus Ilgner commented on PDFBOX-2659:
---------------------------------------

Andreas, Maruan,

thank you both for the quick reply and the patch! I have applied the diff to 
the current 1.8 branch and built it using Maven. The generated document now 
passes the PdfBox preflight check for PDF/A-1a! Fantastic!

In addition to that, I also ran it through the online tool I mentioned above 
again and through Adobe Acrobat's preflight check.

The online tool now reports:
{quote} There is only one RDF resource allowed in XMP.{quote}
Acrobat's preflight check complains about missing information, but is very 
vague about what the problem is exactly.
It has the option of converting to PDF/A-1a though and I'll upload the XML that 
it generates from above source PDF.

The main differences that I can see in the XML are:
- there's only one "rdf:Description" element with many XML namespaces. This 
probably corresponds to the error generated by the online tool
- there's a big "pdfaExtension:schemas" element which references some URIs from 
Adobe and AIIM

> Dublin Core: Title not defined
> ------------------------------
>
>                 Key: PDFBOX-2659
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2659
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.8.8
>            Reporter: Marcus Ilgner
>            Priority: Minor
>              Labels: pdf/a
>         Attachments: PDFBOX-2659.diff, invoice.pdf
>
>
> Validating a PDF for A1 compatibility, I get an error:
> {quote}
> Error on MetaData, Title present in the document catalog dictionary can't be 
> found in XMP information (Property is not defined)
> {quote}
> Yet when I look at the file, the property is defined as such:
> {code}
>       <dc:title>
>         <rdf:Alt>
>           <dc:li>Rechnung 14512-14-001</dc:li>
>         </rdf:Alt>
>       </dc:title>
> {code}
> The code that sets the title (in order to make sure it's the same as the one 
> from the document information):
> {code}
>         DublinCoreSchema dublinCore = xmp.createAndAddDublinCoreSchema();
>         dublinCore.setTitle("x-default", docInfo.getTitle());
> {code}
> Setting the creator via DublinCoreSchema seems to work as it doesn't raise 
> the error anymore after calling 
> {code}dublinCore.addCreator(docInfo.getAuthor());{code}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to