@@ -50,10 +50,9 @@ public void Start()
5050
5151 public void Sample1 ( )
5252 {
53- int desired_x_dpi = 96 ;
54- int desired_y_dpi = 96 ;
53+ int desired_dpi = 96 ;
5554
56- string inputPdfPath = @"E:\gss_test\test .pdf" ;
55+ string inputPdfPath = @"E:\gss_test\Vin�cius\a .pdf" ;
5756 string outputPath = @"E:\gss_test\output\" ;
5857
5958 using ( var rasterizer = new GhostscriptRasterizer ( ) )
@@ -64,7 +63,7 @@ public void Sample1()
6463 {
6564 var pageFilePath = Path . Combine ( outputPath , string . Format ( "Page-{0}.png" , pageNumber ) ) ;
6665
67- var img = rasterizer . GetPage ( desired_x_dpi , desired_y_dpi , pageNumber ) ;
66+ var img = rasterizer . GetPage ( desired_dpi , pageNumber ) ;
6867 img . Save ( pageFilePath , ImageFormat . Png ) ;
6968
7069 Console . WriteLine ( pageFilePath ) ;
@@ -74,8 +73,7 @@ public void Sample1()
7473
7574 public void Sample2 ( )
7675 {
77- int desired_x_dpi = 96 ;
78- int desired_y_dpi = 96 ;
76+ int desired_dpi = 96 ;
7977
8078 string inputPdfPath = @"E:\gss_test\test.pdf" ;
8179 string outputPath = @"E:\gss_test\output\" ;
@@ -93,7 +91,7 @@ public void Sample2()
9391 {
9492 var pageFilePath = Path . Combine ( outputPath , string . Format ( "Page-{0}.png" , pageNumber ) ) ;
9593
96- var img = rasterizer . GetPage ( desired_x_dpi , desired_y_dpi , pageNumber ) ;
94+ var img = rasterizer . GetPage ( desired_dpi , pageNumber ) ;
9795 img . Save ( pageFilePath , ImageFormat . Png ) ;
9896
9997 Console . WriteLine ( pageFilePath ) ;
0 commit comments