You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/07/21 07:29:05 UTC
[jira] [Updated] (PDFBOX-2896) XMPBox not creating valid "title"
entry in DublinCoreSchema in trunk
[ https://issues.apache.org/jira/browse/PDFBOX-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr updated PDFBOX-2896:
------------------------------------
Description:
On TIKA-1678, I was trying to generate a test PDF that had a dc:title in the XMP with XMPBox from PDFBox's trunk. I modified the code from CreatePDFA by adding this:
{code}
DublinCoreSchema dc = xmp.createAndAddDublinCoreSchema();
dc.setTitle("this is the title");
{code}
The generated PDF doesn't appear to have a compliant dc:title entry in the XMP.
[~tilman] noted the divergence from the standard [here|https://issues.apache.org/jira/browse/TIKA-1678?focusedCommentId=14634045&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14634045].
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:
On TIKA-1678, I was trying to generate a test PDF that had a dc:title in the XMP with XMPBox from PDFBox's trunk. I modified the code from CreatePDFA. The generated PDF doesn't appear to have a compliant dc:title entry in the XMP.
[~tilman] noted the divergence from the standard[here|https://issues.apache.org/jira/browse/TIKA-1678?focusedCommentId=14634045&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14634045].
> XMPBox not creating valid "title" entry in DublinCoreSchema in trunk
> --------------------------------------------------------------------
>
> Key: PDFBOX-2896
> URL: https://issues.apache.org/jira/browse/PDFBOX-2896
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Tim Allison
> Priority: Minor
>
> On TIKA-1678, I was trying to generate a test PDF that had a dc:title in the XMP with XMPBox from PDFBox's trunk. I modified the code from CreatePDFA by adding this:
> {code}
> DublinCoreSchema dc = xmp.createAndAddDublinCoreSchema();
> dc.setTitle("this is the title");
> {code}
> The generated PDF doesn't appear to have a compliant dc:title entry in the XMP.
> [~tilman] noted the divergence from the standard [here|https://issues.apache.org/jira/browse/TIKA-1678?focusedCommentId=14634045&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14634045].
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org