[ 
https://issues.apache.org/jira/browse/PDFBOX-2897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-2897:
------------------------------------
    Description: 
[~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">PDF/A-1b test</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}


  was:[~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.


> 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
>            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">PDF/A-1b test</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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to