@@ -43,6 +43,7 @@ source product.
43
43
using System ;
44
44
using System . Collections . Generic ;
45
45
using System . IO ;
46
+ using iText . IO . Util ;
46
47
using iText . Kernel . Geom ;
47
48
using iText . Kernel . Pdf ;
48
49
using iText . Kernel . Pdf . Canvas ;
@@ -215,7 +216,7 @@ public virtual void DrawOnSpecifiedPositionX() {
215
216
String name = "eclipse" ;
216
217
int x = 50 ;
217
218
int y = 0 ;
218
- String destName = name + "_" + x + "_" + y ;
219
+ String destName = MessageFormatUtil . Format ( "{0}_{1}_{2}" , name , x , y ) ;
219
220
FileStream fis = new FileStream ( sourceFolder + name + ".svg" , FileMode . Open , FileAccess . Read ) ;
220
221
DrawOnSpecifiedPositionDocument ( fis , destinationFolder + destName + ".pdf" , x , y ) ;
221
222
NUnit . Framework . Assert . IsNull ( new CompareTool ( ) . CompareByContent ( destinationFolder + destName + ".pdf" , sourceFolder
@@ -227,7 +228,7 @@ public virtual void DrawOnSpecifiedPositionY() {
227
228
String name = "eclipse" ;
228
229
int x = 0 ;
229
230
int y = 100 ;
230
- String destName = name + "_" + x + "_" + y ;
231
+ String destName = MessageFormatUtil . Format ( "{0}_{1}_{2}" , name , x , y ) ;
231
232
FileStream fis = new FileStream ( sourceFolder + name + ".svg" , FileMode . Open , FileAccess . Read ) ;
232
233
DrawOnSpecifiedPositionDocument ( fis , destinationFolder + destName + ".pdf" , x , y ) ;
233
234
NUnit . Framework . Assert . IsNull ( new CompareTool ( ) . CompareByContent ( destinationFolder + destName + ".pdf" , sourceFolder
@@ -239,7 +240,7 @@ public virtual void DrawOnSpecifiedPositionXY() {
239
240
String name = "eclipse" ;
240
241
int x = 50 ;
241
242
int y = 100 ;
242
- String destName = name + "_" + x + "_" + y ;
243
+ String destName = MessageFormatUtil . Format ( "{0}_{1}_{2}" , name , x , y ) ;
243
244
FileStream fis = new FileStream ( sourceFolder + name + ".svg" , FileMode . Open , FileAccess . Read ) ;
244
245
DrawOnSpecifiedPositionDocument ( fis , destinationFolder + destName + ".pdf" , x , y ) ;
245
246
NUnit . Framework . Assert . IsNull ( new CompareTool ( ) . CompareByContent ( destinationFolder + destName + ".pdf" , sourceFolder
@@ -251,7 +252,7 @@ public virtual void DrawOnSpecifiedPositionNegativeX() {
251
252
String name = "eclipse" ;
252
253
int x = - 50 ;
253
254
int y = 0 ;
254
- String destName = String . Format ( System . Globalization . CultureInfo . InvariantCulture , "{0}_{1}_{2}" , name , x , y ) ;
255
+ String destName = MessageFormatUtil . Format ( "{0}_{1}_{2}" , name , x , y ) ;
255
256
FileStream fis = new FileStream ( sourceFolder + name + ".svg" , FileMode . Open , FileAccess . Read ) ;
256
257
DrawOnSpecifiedPositionDocument ( fis , destinationFolder + destName + ".pdf" , x , y ) ;
257
258
NUnit . Framework . Assert . IsNull ( new CompareTool ( ) . CompareByContent ( destinationFolder + destName + ".pdf" , sourceFolder
@@ -263,7 +264,7 @@ public virtual void DrawOnSpecifiedPositionNegativeY() {
263
264
String name = "eclipse" ;
264
265
int x = 0 ;
265
266
int y = - 100 ;
266
- String destName = String . Format ( System . Globalization . CultureInfo . InvariantCulture , "{0}_{1}_{2}" , name , x , y ) ;
267
+ String destName = MessageFormatUtil . Format ( "{0}_{1}_{2}" , name , x , y ) ;
267
268
FileStream fis = new FileStream ( sourceFolder + name + ".svg" , FileMode . Open , FileAccess . Read ) ;
268
269
DrawOnSpecifiedPositionDocument ( fis , destinationFolder + destName + ".pdf" , x , y ) ;
269
270
NUnit . Framework . Assert . IsNull ( new CompareTool ( ) . CompareByContent ( destinationFolder + destName + ".pdf" , sourceFolder
@@ -275,7 +276,7 @@ public virtual void DrawOnSpecifiedPositionNegativeXY() {
275
276
String name = "eclipse" ;
276
277
int x = - 50 ;
277
278
int y = - 100 ;
278
- String destName = String . Format ( System . Globalization . CultureInfo . InvariantCulture , "{0}_{1}_{2}" , name , x , y ) ;
279
+ String destName = MessageFormatUtil . Format ( "{0}_{1}_{2}" , name , x , y ) ;
279
280
FileStream fis = new FileStream ( sourceFolder + name + ".svg" , FileMode . Open , FileAccess . Read ) ;
280
281
DrawOnSpecifiedPositionDocument ( fis , destinationFolder + destName + ".pdf" , x , y ) ;
281
282
NUnit . Framework . Assert . IsNull ( new CompareTool ( ) . CompareByContent ( destinationFolder + destName + ".pdf" , sourceFolder
@@ -287,7 +288,7 @@ public virtual void DrawOnSpecifiedPositionPartialOnPage() {
287
288
String name = "eclipse" ;
288
289
int x = - 50 ;
289
290
int y = - 50 ;
290
- String destName = String . Format ( System . Globalization . CultureInfo . InvariantCulture , "{0}_{1}_{2}" , name , x , y ) ;
291
+ String destName = MessageFormatUtil . Format ( "{0}_{1}_{2}" , name , x , y ) ;
291
292
FileStream fis = new FileStream ( sourceFolder + name + ".svg" , FileMode . Open , FileAccess . Read ) ;
292
293
DrawOnSpecifiedPositionDocument ( fis , destinationFolder + destName + ".pdf" , x , y ) ;
293
294
NUnit . Framework . Assert . IsNull ( new CompareTool ( ) . CompareByContent ( destinationFolder + destName + ".pdf" , sourceFolder
0 commit comments