@@ -22,7 +22,6 @@ This file is part of the iText (R) project.
22
22
*/
23
23
package com .itextpdf .html2pdf .attach .impl .tags ;
24
24
25
- import com .itextpdf .commons .utils .ExperimentalFeatures ;
26
25
import com .itextpdf .commons .utils .MessageFormatUtil ;
27
26
import com .itextpdf .forms .form .FormProperty ;
28
27
import com .itextpdf .forms .form .element .Button ;
@@ -122,16 +121,14 @@ public InputTagWorker(IElementNode element, ProcessorContext context) {
122
121
} else if (AttributeConstants .CHECKBOX .equals (inputType )) {
123
122
CheckBox cb = new CheckBox (name );
124
123
String checked = element .getAttribute (AttributeConstants .CHECKED );
125
- if (ExperimentalFeatures .ENABLE_EXPERIMENTAL_CHECKBOX_RENDERING ) {
126
- // so in the previous implementation the width was 8.25 and the borders .75,
127
- // but the borders got drawn on the outside of the box, so the actual size was 9.75
128
- // because 8.25 + 2 * .75 = 9.75
129
- final float widthWithBordersOnTheInside = 9.75f ;
130
- final float defaultBorderWith = 0.75f ;
131
- cb .setSize (widthWithBordersOnTheInside );
132
- cb .setBorder (new SolidBorder (ColorConstants .DARK_GRAY , defaultBorderWith ));
133
- cb .setBackgroundColor (ColorConstants .WHITE );
134
- }
124
+ // so in the previous implementation the width was 8.25 and the borders .75,
125
+ // but the borders got drawn on the outside of the box, so the actual size was 9.75
126
+ // because 8.25 + 2 * .75 = 9.75
127
+ final float widthWithBordersOnTheInside = 9.75f ;
128
+ final float defaultBorderWith = .75f ;
129
+ cb .setSize (widthWithBordersOnTheInside );
130
+ cb .setBorder (new SolidBorder (ColorConstants .DARK_GRAY , defaultBorderWith ));
131
+ cb .setBackgroundColor (ColorConstants .WHITE );
135
132
// has attribute == is checked
136
133
cb .setChecked (checked != null );
137
134
formElement = cb ;
0 commit comments