pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r720692 - /incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdfviewer/PageDrawer.java
Date Wed, 26 Nov 2008 01:08:19 GMT
Author: jukka
Date: Tue Nov 25 17:08:19 2008
New Revision: 720692

URL: http://svn.apache.org/viewvc?rev=720692&view=rev
Log:
PDFBOX-363: Fixed Page rotation

Follow-up patch by Andreas Lehmkühler.

Modified:
    incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdfviewer/PageDrawer.java

Modified: incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdfviewer/PageDrawer.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdfviewer/PageDrawer.java?rev=720692&r1=720691&r2=720692&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdfviewer/PageDrawer.java (original)
+++ incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdfviewer/PageDrawer.java Tue Nov
25 17:08:19 2008
@@ -165,7 +165,7 @@
     		// If there is a rotation, we have to add a additional rotation by 180°. 
     		// Don't no why.yet. I guess there is a problem with clockwise- and counterclockwise-rotation
             if (at.getShearX() != 0 || at.getShearY() != 0)
-            	at.quadrantRotate(2);
+            	at.rotate(Math.PI);
             font.drawString( text.getCharacter(), graphics, text.getFontSize(), at, x, y
);
         }
         catch( IOException io )



Mime
View raw message