File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
itext.tests/itext.html2pdf.tests/itext/html2pdf/css Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -711,7 +711,8 @@ public virtual void ResponsiveIText() {
711
711
foreach ( PageSize pageSize in pageSizes ) {
712
712
float ? pxWidth = null ;
713
713
if ( pageSize != null ) {
714
- pxWidth = CssDimensionParsingUtils . ParseAbsoluteLength ( pageSize . GetWidth ( ) . ToString ( ) ) ;
714
+ pxWidth = CssDimensionParsingUtils . ParseAbsoluteLength ( pageSize . GetWidth ( ) . ToString ( System . Globalization . CultureInfo . InvariantCulture
715
+ ) ) ;
715
716
}
716
717
String outName = "responsiveIText" + ( pxWidth != null ? "_" + ( int ) ( float ) pxWidth : "" ) + ".pdf" ;
717
718
PdfWriter writer = new PdfWriter ( DESTINATION_FOLDER + outName ) ;
@@ -731,7 +732,8 @@ public virtual void ResponsiveIText() {
731
732
foreach ( PageSize pageSize in pageSizes ) {
732
733
float ? pxWidth = null ;
733
734
if ( pageSize != null ) {
734
- pxWidth = CssDimensionParsingUtils . ParseAbsoluteLength ( pageSize . GetWidth ( ) . ToString ( ) ) ;
735
+ pxWidth = CssDimensionParsingUtils . ParseAbsoluteLength ( pageSize . GetWidth ( ) . ToString ( System . Globalization . CultureInfo . InvariantCulture
736
+ ) ) ;
735
737
}
736
738
String outName = "responsiveIText" + ( pxWidth != null ? "_" + ( int ) ( float ) pxWidth : "" ) + ".pdf" ;
737
739
String cmpName = "cmp_" + outName ;
You can’t perform that action at this time.
0 commit comments