]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
clear data when stopping renderer
authorKeiron Liddle <keiron@apache.org>
Wed, 18 Dec 2002 14:50:35 +0000 (14:50 +0000)
committerKeiron Liddle <keiron@apache.org>
Wed, 18 Dec 2002 14:50:35 +0000 (14:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195775 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/render/pdf/PDFRenderer.java

index 2a75d2768b2479e138e1fa042d48400336ec7d9e..7bc9af5a5a0d03ddf0ae00c633cb272c440c0303 100644 (file)
@@ -145,8 +145,6 @@ public class PDFRenderer extends PrintRenderer {
     // 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 @@ public class PDFRenderer extends PrintRenderer {
 
         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() {