prevents it creating invalid documents
frees up memory
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194440
13f79535-47bb-0310-9956-
ffa450edef68
renderRootExtensions(extensions);
FontSetup.addToResources(this.pdfDoc, fontInfo);
pdfDoc.outputTrailer(stream);
+
+ // this frees up memory and makes the renderer reusable
+ this.pdfDoc = new PDFDocument();
+ this.pdfResources = null;
+ extensions = null;
+ currentStream = null;
+ currentAnnotList = null;
+ currentPage = null;
+ currentColor = null;
}
/**