From: Keiron Liddle Date: Wed, 18 Dec 2002 14:50:35 +0000 (+0000) Subject: clear data when stopping renderer X-Git-Tag: Alt-Design-integration-base~240 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4582a5a2ae1dd7d5a4f38c222efdd7dcafcbf252;p=xmlgraphics-fop.git clear data when stopping renderer git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195775 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/render/pdf/PDFRenderer.java b/src/org/apache/fop/render/pdf/PDFRenderer.java index 2a75d2768..7bc9af5a5 100644 --- a/src/org/apache/fop/render/pdf/PDFRenderer.java +++ b/src/org/apache/fop/render/pdf/PDFRenderer.java @@ -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() {