aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-11-14 15:22:30 +0000
committerKeiron Liddle <keiron@apache.org>2002-11-14 15:22:30 +0000
commit380d32642b5319c62c703046e0005054400e35af (patch)
tree4158ff98b29bb22eb1a8861650fb46dbb507ca71
parent893f8f62637c26b412e0ffc86455f377371a6ca0 (diff)
downloadxmlgraphics-fop-380d32642b5319c62c703046e0005054400e35af.tar.gz
xmlgraphics-fop-380d32642b5319c62c703046e0005054400e35af.zip
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
-rw-r--r--src/org/apache/fop/render/pdf/PDFXMLHandler.java3
1 files changed, 3 insertions, 0 deletions
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,