]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added default producer to fix a bug where the PDF producer is
authorKelly Campbell <kellyc@apache.org>
Sun, 1 Apr 2001 09:54:53 +0000 (09:54 +0000)
committerKelly Campbell <kellyc@apache.org>
Sun, 1 Apr 2001 09:54:53 +0000 (09:54 +0000)
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

index 7d2c7ec2e0bd401f0b0214357a9bfd96c8dba52d..6636d2d624564f05ddffa2883468b4bfdbd27783 100644 (file)
@@ -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;
     }