From 77fd583734c4ef0857fddc675920e9db6952007b Mon Sep 17 00:00:00 2001 From: Kelly Campbell Date: Sun, 1 Apr 2001 09:54:53 +0000 Subject: [PATCH] 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 --- src/org/apache/fop/pdf/PDFDocument.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.5