You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Marcus Ilgner (JIRA)" <ji...@apache.org> on 2015/02/03 15:07:35 UTC
[jira] [Commented] (PDFBOX-2659) Dublin Core: Title not defined
[ https://issues.apache.org/jira/browse/PDFBOX-2659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14303288#comment-14303288 ]
Marcus Ilgner commented on PDFBOX-2659:
---------------------------------------
This may be related: the online validator at http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx reports that:
{quote}'dc:li' is not allowed in arrays. The elements must be rdf:li or rdf:_N, where N is a positive number.{quote}
Which I interpret as maybe replacing "dc:li" by "rdf:li" may be enough?
> 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
>
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org