You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2001/04/01 11:54:53 UTC

cvs commit: xml-fop/src/org/apache/fop/pdf PDFDocument.java

kellyc      01/04/01 01:54:53

  Modified:    src/org/apache/fop/pdf PDFDocument.java
  Log:
  Added default producer to fix a bug where the PDF producer is
  set to null in the default commandline usage.
  
  Revision  Changes    Path
  1.20      +4 -2      xml-fop/src/org/apache/fop/pdf/PDFDocument.java
  
  Index: PDFDocument.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/pdf/PDFDocument.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- PDFDocument.java	2001/02/27 12:28:16	1.19
  +++ PDFDocument.java	2001/04/01 09:54:53	1.20
  @@ -1,4 +1,4 @@
  -/*-- $Id: PDFDocument.java,v 1.19 2001/02/27 12:28:16 fotis Exp $ --
  +/*-- $Id: PDFDocument.java,v 1.20 2001/04/01 09:54:53 kellyc Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -193,7 +193,9 @@
           /* 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;
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org