aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-03-21 08:13:21 +0000
committerJeremias Maerki <jeremias@apache.org>2007-03-21 08:13:21 +0000
commitd73b94a782e0e661cbd8cdc558ba6ab65402fe65 (patch)
treeca698803aa803089dd7255db949303e1e7586d24 /src/java
parent12deb5966a0cb0408ff1e5a5c197725278dd821b (diff)
downloadxmlgraphics-fop-d73b94a782e0e661cbd8cdc558ba6ab65402fe65.tar.gz
xmlgraphics-fop-d73b94a782e0e661cbd8cdc558ba6ab65402fe65.zip
Fixed a problem with the auto-rotate-landscape setting in the PostScript renderer. It didn't generate the right setpagedevice command.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@520797 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/render/ps/PSRenderer.java19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSRenderer.java b/src/java/org/apache/fop/render/ps/PSRenderer.java
index 24595368f..68c6cc86c 100644
--- a/src/java/org/apache/fop/render/ps/PSRenderer.java
+++ b/src/java/org/apache/fop/render/ps/PSRenderer.java
@@ -953,15 +953,22 @@ public class PSRenderer extends AbstractPathOrientedRenderer implements ImageAda
}
if (rotate) {
+ gen.writeln("<<");
+ gen.writeln("/PageSize ["
+ + Math.round(pspageheight) + " "
+ + Math.round(pspagewidth) + "]");
+ gen.writeln("/ImagingBBox null");
+ gen.writeln(">> setpagedevice");
gen.writeln(Math.round(pspageheight) + " 0 translate");
gen.writeln("90 rotate");
+ } else {
+ gen.writeln("<<");
+ gen.writeln("/PageSize ["
+ + Math.round(pspagewidth) + " "
+ + Math.round(pspageheight) + "]");
+ gen.writeln("/ImagingBBox null");
+ gen.writeln(">> setpagedevice");
}
- gen.writeln("<<");
- gen.writeln("/PageSize ["
- + Math.round(pspagewidth) + " "
- + Math.round(pspageheight) + "]");
- gen.writeln("/ImagingBBox null");
- gen.writeln(">> setpagedevice");
concatMatrix(1, 0, 0, -1, 0, pageheight / 1000f);
gen.writeDSCComment(DSCConstants.END_PAGE_SETUP);