diff options
author | Kelly Campbell <kellyc@apache.org> | 2001-04-01 09:54:53 +0000 |
---|---|---|
committer | Kelly Campbell <kellyc@apache.org> | 2001-04-01 09:54:53 +0000 |
commit | 77fd583734c4ef0857fddc675920e9db6952007b (patch) | |
tree | d2f51d31b3e0d43815b497f5957e82c1dc1f3e29 /src | |
parent | 647f3227accc64cf7dc2c65137a967931f6df283 (diff) | |
download | xmlgraphics-fop-77fd583734c4ef0857fddc675920e9db6952007b.tar.gz xmlgraphics-fop-77fd583734c4ef0857fddc675920e9db6952007b.zip |
Added default producer to fix a bug where the PDF producer is
set to null in the default commandline usage.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194186 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/org/apache/fop/pdf/PDFDocument.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/apache/fop/pdf/PDFDocument.java b/src/org/apache/fop/pdf/PDFDocument.java index 7d2c7ec2e..6636d2d62 100644 --- a/src/org/apache/fop/pdf/PDFDocument.java +++ b/src/org/apache/fop/pdf/PDFDocument.java @@ -193,7 +193,9 @@ public class PDFDocument { /* create a PDFInfo with the next object number and add to list of objects */ PDFInfo pdfInfo = new PDFInfo(++this.objectcount); - this.objects.addElement(pdfInfo); + // set the default producer + pdfInfo.setProducer(org.apache.fop.apps.Version.getVersion()); + this.objects.addElement(pdfInfo); return pdfInfo; } |