keiron      2002/12/18 06:50:35

  Modified:    src/org/apache/fop/render/pdf PDFRenderer.java
  Log:
  clear data when stopping renderer
  
  Revision  Changes    Path
  1.133     +13 -3     xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java
  
  Index: PDFRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java,v
  retrieving revision 1.132
  retrieving revision 1.133
  diff -u -r1.132 -r1.133
  --- PDFRenderer.java  29 Nov 2002 23:18:57 -0000      1.132
  +++ PDFRenderer.java  18 Dec 2002 14:50:35 -0000      1.133
  @@ -145,8 +145,6 @@
       // drawing state
       protected PDFState currentState = null;
   
  -    protected PDFColor currentFillColor = new PDFColor(255, 255, 255);
  -    protected PDFColor currentStrokeColor = new PDFColor(0, 0, 0);
       protected String currentFontName = "";
       protected int currentFontSize = 0;
       protected int pageHeight;
  @@ -266,6 +264,18 @@
   
           this.pdfDoc = null;
           ostream = null;
  +
  +        pages = null;
  +
  +        pageReferences.clear();
  +        pvReferences.clear();
  +        pdfResources = null;
  +        currentStream = null;
  +        currentContext = null;
  +        currentPage = null;
  +        currentState = null;
  +        currentFontName = "";
  +        wordAreaPDF = new StringBuffer();
       }
   
       public boolean supportsOutOfOrder() {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to