diff options
author | Chris Bowditch <cbowditch@apache.org> | 2007-10-04 13:51:25 +0000 |
---|---|---|
committer | Chris Bowditch <cbowditch@apache.org> | 2007-10-04 13:51:25 +0000 |
commit | 2442659ffd10775878356396cf8037cc3e6ea184 (patch) | |
tree | 4562b2a0477450c5609c082f955b7bdfaa9ff0a0 /src/java/org/apache/fop/render/ps/PSRendererConfigurator.java | |
parent | 6b01763aed5d65ed66804c2167323824f9040d9f (diff) | |
download | xmlgraphics-fop-2442659ffd10775878356396cf8037cc3e6ea184.tar.gz xmlgraphics-fop-2442659ffd10775878356396cf8037cc3e6ea184.zip |
Bugzilla #42144
Safely set postscript page device dictionary
Submitted by Adrian Cumiskey <dev.at.cumiskey.com>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@581906 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/ps/PSRendererConfigurator.java')
-rw-r--r-- | src/java/org/apache/fop/render/ps/PSRendererConfigurator.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSRendererConfigurator.java b/src/java/org/apache/fop/render/ps/PSRendererConfigurator.java index c7b5a025b..6caa92c85 100644 --- a/src/java/org/apache/fop/render/ps/PSRendererConfigurator.java +++ b/src/java/org/apache/fop/render/ps/PSRendererConfigurator.java @@ -49,8 +49,13 @@ public class PSRendererConfigurator extends PrintRendererConfigurator { super.configure(renderer); PSRenderer psRenderer = (PSRenderer)renderer; + psRenderer.setAutoRotateLandscape( cfg.getChild("auto-rotate-landscape").getValueAsBoolean(false)); + psRenderer.setSafeSetPageDevice( + cfg.getChild("safe-set-page-device").getValueAsBoolean(false)); + psRenderer.setDSCCompliant( + cfg.getChild("dsc-compliant").getValueAsBoolean(true)); } } } |