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() {
711711 foreach ( PageSize pageSize in pageSizes ) {
712712 float ? pxWidth = null ;
713713 if ( pageSize != null ) {
714- pxWidth = CssDimensionParsingUtils . ParseAbsoluteLength ( pageSize . GetWidth ( ) . ToString ( ) ) ;
714+ pxWidth = CssDimensionParsingUtils . ParseAbsoluteLength ( pageSize . GetWidth ( ) . ToString ( System . Globalization . CultureInfo . InvariantCulture
715+ ) ) ;
715716 }
716717 String outName = "responsiveIText" + ( pxWidth != null ? "_" + ( int ) ( float ) pxWidth : "" ) + ".pdf" ;
717718 PdfWriter writer = new PdfWriter ( DESTINATION_FOLDER + outName ) ;
@@ -731,7 +732,8 @@ public virtual void ResponsiveIText() {
731732 foreach ( PageSize pageSize in pageSizes ) {
732733 float ? pxWidth = null ;
733734 if ( pageSize != null ) {
734- pxWidth = CssDimensionParsingUtils . ParseAbsoluteLength ( pageSize . GetWidth ( ) . ToString ( ) ) ;
735+ pxWidth = CssDimensionParsingUtils . ParseAbsoluteLength ( pageSize . GetWidth ( ) . ToString ( System . Globalization . CultureInfo . InvariantCulture
736+ ) ) ;
735737 }
736738 String outName = "responsiveIText" + ( pxWidth != null ? "_" + ( int ) ( float ) pxWidth : "" ) + ".pdf" ;
737739 String cmpName = "cmp_" + outName ;
You can’t perform that action at this time.
0 commit comments