aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-02-17 16:29:14 +0000
committerJeremias Maerki <jeremias@apache.org>2006-02-17 16:29:14 +0000
commit65b653d39e8018de7510a78e39d0ef8de3a40ab5 (patch)
tree6704122d926155ac88383f34b6cc807f5fc3c146 /src
parentbb601dc8aa70faa53cdfac917161f7d2ef7fc1a3 (diff)
downloadxmlgraphics-fop-65b653d39e8018de7510a78e39d0ef8de3a40ab5.tar.gz
xmlgraphics-fop-65b653d39e8018de7510a78e39d0ef8de3a40ab5.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/pdf/PDFMetadata.java6
1 files changed, 5 insertions, 1 deletions
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");