Return-Path: Delivered-To: apmail-incubator-pdfbox-commits-archive@locus.apache.org Received: (qmail 86793 invoked from network); 26 Nov 2008 01:08:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2008 01:08:40 -0000 Received: (qmail 75221 invoked by uid 500); 26 Nov 2008 01:08:51 -0000 Delivered-To: apmail-incubator-pdfbox-commits-archive@incubator.apache.org Received: (qmail 75202 invoked by uid 500); 26 Nov 2008 01:08:51 -0000 Mailing-List: contact pdfbox-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pdfbox-dev@incubator.apache.org Delivered-To: mailing list pdfbox-commits@incubator.apache.org Received: (qmail 75193 invoked by uid 99); 26 Nov 2008 01:08:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 17:08:51 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 01:07:34 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2F05423888A4; Tue, 25 Nov 2008 17:08:20 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r720692 - /incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdfviewer/PageDrawer.java Date: Wed, 26 Nov 2008 01:08:19 -0000 To: pdfbox-commits@incubator.apache.org From: jukka@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081126010820.2F05423888A4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 )