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

Maruan Sahyoun edited comment on PDFBOX-2897 at 7/21/15 7:23 PM:
-----------------------------------------------------------------

Just to be sure I also verified the file with Acrobat X and it also complains.


was (Author: msahyoun):
Just to be sure I also verified with Acrobat X and it also complains.

> 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
>         Attachments: 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.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to