File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
forms/src/main/java/com/itextpdf/forms/fields Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1796,18 +1796,18 @@ public boolean regenerateField() {
1796
1796
//Copy Bounding box
1797
1797
bBox = new PdfArray (rect );
1798
1798
}
1799
+
1799
1800
//Apply field rotation
1800
- float rotation = 0 ;
1801
+ float fieldRotation = 0 ;
1801
1802
if (this .getPdfObject ().getAsDictionary (PdfName .MK )!= null
1802
1803
&& this .getPdfObject ().getAsDictionary (PdfName .MK ).get (PdfName .R ) != null ){
1803
- rotation = this .getPdfObject ().getAsDictionary (PdfName .MK ).getAsFloat (PdfName .R );
1804
+ fieldRotation = this .getPdfObject ().getAsDictionary (PdfName .MK ).getAsFloat (PdfName .R );
1804
1805
}
1805
- //rotation = this.rotation;
1806
+
1806
1807
//Field rotation is specified as counterclockwise
1807
- //rotation *=-1;
1808
- if (rotation % 90 == 0 ) {
1808
+ if (fieldRotation % 90 == 0 ) {
1809
1809
//Cast angle to [0, 360]
1810
- double angle = rotation %360 ;
1810
+ double angle = fieldRotation %360 ;
1811
1811
//Get angle in radians
1812
1812
angle = Math .PI * angle / 180 ;
1813
1813
//Calculate origin offset
You can’t perform that action at this time.
0 commit comments