diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2009-04-30 13:43:51 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2009-04-30 13:43:51 +0000 |
commit | 88f28b18dc043093b0d97183b43ba24b2f370b20 (patch) | |
tree | d6c8fae776976624a5becc427c67196ef3763a35 /src/java/org/apache/fop | |
parent | 54bd1f47b3c90f6110d47d8a400602a9e4844b79 (diff) | |
download | xmlgraphics-fop-88f28b18dc043093b0d97183b43ba24b2f370b20.tar.gz xmlgraphics-fop-88f28b18dc043093b0d97183b43ba24b2f370b20.zip |
Bugfix: reset graphic state when a page is finished in PostScript.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@770223 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/render/ps/PSDocumentHandler.java | 3 | ||||
-rw-r--r-- | src/java/org/apache/fop/render/ps/PSRenderer.java | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSDocumentHandler.java b/src/java/org/apache/fop/render/ps/PSDocumentHandler.java index b30d5f248..5a6db172a 100644 --- a/src/java/org/apache/fop/render/ps/PSDocumentHandler.java +++ b/src/java/org/apache/fop/render/ps/PSDocumentHandler.java @@ -435,8 +435,7 @@ public class PSDocumentHandler extends AbstractBinaryWritingIFDocumentHandler { /** {@inheritDoc} */ public void endPageContent() throws IFException { try { - //Show page - gen.writeln("showpage"); + gen.showPage(); } catch (IOException ioe) { throw new IFException("I/O error in endPageContent()", ioe); } diff --git a/src/java/org/apache/fop/render/ps/PSRenderer.java b/src/java/org/apache/fop/render/ps/PSRenderer.java index 19fcd8af8..09ea800f8 100644 --- a/src/java/org/apache/fop/render/ps/PSRenderer.java +++ b/src/java/org/apache/fop/render/ps/PSRenderer.java @@ -933,7 +933,7 @@ public class PSRenderer extends AbstractPathOrientedRenderer super.renderPage(page); //Show page - writeln("showpage"); + gen.showPage(); gen.writeDSCComment(DSCConstants.PAGE_TRAILER); if (page.hasExtensionAttachments()) { List extensionAttachments = page.getExtensionAttachments(); |