diff options
author | Keiron Liddle <keiron@apache.org> | 2002-11-20 07:51:35 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-11-20 07:51:35 +0000 |
commit | c9a1bd7c7ba2e14bd1c8a83bcdf3acea36c9f44e (patch) | |
tree | 0ed339cfcd0dc5c442e40350c2638e6ad233c171 /src/org/apache/fop/pdf/PDFInfo.java | |
parent | d8d15aeac70f0065dd3959431ce344d7a5a74fb4 (diff) | |
download | xmlgraphics-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.java | 13 |
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') |