File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
layout/src/main/java/com/itextpdf/layout/renderer Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -285,18 +285,6 @@ public void draw(DrawContext drawContext) {
285
285
fixedXPosition = occupiedArea .getBBox ().getX ();
286
286
}
287
287
288
- Float angle = this .getPropertyAsFloat (Property .ROTATION_ANGLE );
289
- if (angle != null ) {
290
- fixedXPosition += rotatedDeltaX ;
291
- fixedYPosition -= rotatedDeltaY ;
292
- drawContext .getCanvas ().saveState ();
293
- applyConcatMatrix (drawContext , angle );
294
- }
295
- super .draw (drawContext );
296
- if (angle != null ) {
297
- drawContext .getCanvas ().restoreState ();
298
- }
299
-
300
288
PdfDocument document = drawContext .getDocument ();
301
289
boolean isTagged = drawContext .isTaggingEnabled ();
302
290
boolean modelElementIsAccessible = isTagged && getModelElement () instanceof IAccessibleElement ;
@@ -320,6 +308,18 @@ public void draw(DrawContext drawContext) {
320
308
}
321
309
}
322
310
311
+ Float angle = this .getPropertyAsFloat (Property .ROTATION_ANGLE );
312
+ if (angle != null ) {
313
+ fixedXPosition += rotatedDeltaX ;
314
+ fixedYPosition -= rotatedDeltaY ;
315
+ drawContext .getCanvas ().saveState ();
316
+ applyConcatMatrix (drawContext , angle );
317
+ }
318
+ super .draw (drawContext );
319
+ if (angle != null ) {
320
+ drawContext .getCanvas ().restoreState ();
321
+ }
322
+
323
323
PdfCanvas canvas = drawContext .getCanvas ();
324
324
if (isTagged ) {
325
325
if (isArtifact ) {
You can’t perform that action at this time.
0 commit comments