You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2007/03/21 09:13:22 UTC

svn commit: r520797 - in /xmlgraphics/fop/trunk: src/java/org/apache/fop/render/ps/PSRenderer.java status.xml

Author: jeremias
Date: Wed Mar 21 01:13:21 2007
New Revision: 520797

URL: http://svn.apache.org/viewvc?view=rev&rev=520797
Log:
Fixed a problem with the auto-rotate-landscape setting in the PostScript renderer. It didn't generate the right setpagedevice command.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRenderer.java
    xmlgraphics/fop/trunk/status.xml

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRenderer.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRenderer.java?view=diff&rev=520797&r1=520796&r2=520797
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRenderer.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRenderer.java Wed Mar 21 01:13:21 2007
@@ -953,15 +953,22 @@
         }
         
         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);

Modified: xmlgraphics/fop/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/status.xml?view=diff&rev=520797&r1=520796&r2=520797
==============================================================================
--- xmlgraphics/fop/trunk/status.xml (original)
+++ xmlgraphics/fop/trunk/status.xml Wed Mar 21 01:13:21 2007
@@ -29,6 +29,10 @@
   <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.
       </action>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org