From 380d32642b5319c62c703046e0005054400e35af Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Thu, 14 Nov 2002 15:22:30 +0000 Subject: [PATCH] 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 --- src/org/apache/fop/render/pdf/PDFXMLHandler.java | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.39.5