Index: src/java/org/apache/fop/area/CTM.java =================================================================== --- src/java/org/apache/fop/area/CTM.java (revision 240357) +++ src/java/org/apache/fop/area/CTM.java (working copy) @@ -157,13 +157,13 @@ */ public CTM rotate(double angle) { double cos, sin; - if (angle == 90.0) { + if (angle == 90.0 || angle == -270.0) { cos = 0.0; sin = 1.0; - } else if (angle == 270.0) { + } else if (angle == 270.0 || angle == -90.0) { cos = 0.0; sin = -1.0; - } else if (angle == 180.0) { + } else if (angle == 180.0 || angle == -180.0) { cos = -1.0; sin = 0.0; } else { @@ -283,12 +283,15 @@ // first quadrant. Note: rotation is counter-clockwise switch (absRefOrient) { case 90: + case -270: ctm = ctm.translate(0, width); // width = absVPrect.height break; case 180: + case -180: ctm = ctm.translate(width, height); break; case 270: + case -90: ctm = ctm.translate(height, 0); // height = absVPrect.width break; }