From 65b653d39e8018de7510a78e39d0ef8de3a40ab5 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 17 Feb 2006 16:29:14 +0000 Subject: [PATCH] A nit: dc:creator needs to be an ordered Text array. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@378562 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/pdf/PDFMetadata.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/pdf/PDFMetadata.java b/src/java/org/apache/fop/pdf/PDFMetadata.java index 9af42e8b6..9b21420eb 100644 --- a/src/java/org/apache/fop/pdf/PDFMetadata.java +++ b/src/java/org/apache/fop/pdf/PDFMetadata.java @@ -177,7 +177,11 @@ public class PDFMetadata extends PDFStream { if (info.getAuthor() != null) { el = doc.createElementNS(XMPConstants.DUBLIN_CORE_NAMESPACE, "dc:creator"); desc.appendChild(el); - el.appendChild(doc.createTextNode(info.getAuthor())); + Element seq = doc.createElementNS(XMPConstants.RDF_NAMESPACE, "rdf:Seq"); + el.appendChild(seq); + Element li = doc.createElementNS(XMPConstants.RDF_NAMESPACE, "rdf:li"); + seq.appendChild(li); + li.appendChild(doc.createTextNode(info.getAuthor())); } if (info.getTitle() != null) { el = doc.createElementNS(XMPConstants.DUBLIN_CORE_NAMESPACE, "dc:title"); -- 2.39.5