diff options
author | Keiron Liddle <keiron@apache.org> | 2002-11-14 15:22:30 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-11-14 15:22:30 +0000 |
commit | 380d32642b5319c62c703046e0005054400e35af (patch) | |
tree | 4158ff98b29bb22eb1a8861650fb46dbb507ca71 | |
parent | 893f8f62637c26b412e0ffc86455f377371a6ca0 (diff) | |
download | xmlgraphics-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.java | 3 |
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, |