You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2017/03/25 18:10:46 UTC
[jira] [Updated] (PDFBOX-2897) Preflight not flagging bad xml
generated by XMPBox for dc:title
[ https://issues.apache.org/jira/browse/PDFBOX-2897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler updated PDFBOX-2897:
---------------------------------------
Fix Version/s: (was: 2.1.0)
3.0.0
> Preflight not flagging bad xml generated by XMPBox for dc:title
> ---------------------------------------------------------------
>
> Key: PDFBOX-2897
> URL: https://issues.apache.org/jira/browse/PDFBOX-2897
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight, XmpBox
> Affects Versions: 2.0.0
> Reporter: Tim Allison
> Priority: Minor
> Fix For: 3.0.0
>
> Attachments: PDFBOX-2897-PDFA-BadXMP2.pdf, PDFBOX-2897-PDFA-BadXMP.pdf
>
>
> [~tilman] asked that I open two separate issues for the finding in TIKA-1678 that XMPBox is not generating a valid dc:title entry in the XMP. This issue is meant to track preflight's failure to detect this problem.
> What PDFBox does:
> {code}
> <dc:title>
> <rdf:Alt>
> <dc:li>this is the title</dc:li>
> </rdf:Alt>
> </dc:title>
> {code}
> It should be:
> {code}
> <dc:title>
> <rdf:Alt>
> <rdf:li xml:lang="x-default">this is the title</rdf:li>
> </rdf:Alt>
> </dc:title>
> {code}
> Error message from the PDF-Tools validator:
> {quote}
> 'dc:li' is not allowed in arrays. The elements must be rdf:li or rdf:_N, where N is a positive number.
> There is only one RDF resource allowed in XMP.
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org