From: Kelly Campbell Date: Sun, 1 Apr 2001 09:54:53 +0000 (+0000) Subject: Added default producer to fix a bug where the PDF producer is X-Git-Tag: fop-0_18_1~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=77fd583734c4ef0857fddc675920e9db6952007b;p=xmlgraphics-fop.git 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 --- 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; }