From: Keiron Liddle Date: Thu, 14 Nov 2002 15:22:30 +0000 (+0000) Subject: make sure it has valid pdf context X-Git-Tag: Alt-Design-integration-base~328 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=380d32642b5319c62c703046e0005054400e35af;p=xmlgraphics-fop.git make sure it has valid pdf context git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195537 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/render/pdf/PDFXMLHandler.java b/src/org/apache/fop/render/pdf/PDFXMLHandler.java index ff0813c46..6857311d6 100644 --- a/src/org/apache/fop/render/pdf/PDFXMLHandler.java +++ b/src/org/apache/fop/render/pdf/PDFXMLHandler.java @@ -264,6 +264,9 @@ public class PDFXMLHandler implements XMLHandler { + PDFNumber.doubleOut(vals[5]) + " cm\n"); } + if (pdfInfo.pdfContext == null) { + pdfInfo.pdfContext = pdfInfo.pdfPage; + } PDFGraphics2D graphics = new PDFGraphics2D(true, pdfInfo.fi, pdfInfo.pdfDoc, pdfInfo.pdfContext, pdfInfo.pdfPage.referencePDF(), pdfInfo.currentFontName,