]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed a problem with the auto-rotate-landscape setting in the PostScript renderer...
authorJeremias Maerki <jeremias@apache.org>
Wed, 21 Mar 2007 08:13:21 +0000 (08:13 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 21 Mar 2007 08:13:21 +0000 (08:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@520797 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/ps/PSRenderer.java
status.xml

index 24595368fe9ecf4329ac29c67b33a31fdfc5bc7e..68c6cc86cc3a7d5ef4c7ace47c6ce79a3e8b8277 100644 (file)
@@ -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);
index 2c662ef1f8fb6078c86a3fc34d2ad886bd066fcb..4772cb821f60346bee557b0b2c2bd903711e74c5 100644 (file)
 
   <changes>
     <release version="FOP Trunk">
+      <action context="Code" dev="JM" type="fix">
+        Fixed a problem with the auto-rotate-landscape setting in the PostScript renderer.
+        It didn't generate the right setpagedevice command.
+      </action>
       <action context="Code" dev="JM" type="fix">
         Fixed an IllegalArgumentException for absolutely positioned block-containers with a
         border and no height/bpd set.