aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/pdf/PDFInfo.java
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-11-20 07:51:35 +0000
committerKeiron Liddle <keiron@apache.org>2002-11-20 07:51:35 +0000
commitc9a1bd7c7ba2e14bd1c8a83bcdf3acea36c9f44e (patch)
tree0ed339cfcd0dc5c442e40350c2638e6ad233c171 /src/org/apache/fop/pdf/PDFInfo.java
parentd8d15aeac70f0065dd3959431ce344d7a5a74fb4 (diff)
downloadxmlgraphics-fop-c9a1bd7c7ba2e14bd1c8a83bcdf3acea36c9f44e.tar.gz
xmlgraphics-fop-c9a1bd7c7ba2e14bd1c8a83bcdf3acea36c9f44e.zip
enable setting creator
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195570 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/pdf/PDFInfo.java')
-rw-r--r--src/org/apache/fop/pdf/PDFInfo.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/org/apache/fop/pdf/PDFInfo.java b/src/org/apache/fop/pdf/PDFInfo.java
index 1004389f9..9193648ab 100644
--- a/src/org/apache/fop/pdf/PDFInfo.java
+++ b/src/org/apache/fop/pdf/PDFInfo.java
@@ -47,6 +47,15 @@ public class PDFInfo extends PDFObject {
this.producer = producer;
}
+ /**
+ * set the creator string
+ *
+ * @param creator the document creator
+ */
+ public void setCreator(String creator) {
+ this.creator = creator;
+ }
+
public void setTitle(String t) {
this.title = t;
}
@@ -84,6 +93,10 @@ public class PDFInfo extends PDFObject {
p += "/Keywords (" + this.keywords + ")\n";
}
+ if (creator != null) {
+ p += "/Creator (" + this.creator + ")\n";
+ }
+
p += "/Producer (" + this.producer + ")\n";
// creation date in form (D:YYYYMMDDHHmmSSOHH'mm')