1 [STAThread]
2 static void Main(string[] args)
3 {
4 #region MyRegion
5 /*
6 if (args != null && args.Length > 0)
7 {
8 string PdfPath = args[0].ToString();
9 string ImgPath = args[1].ToString();
10 string imgDire = args[2].ToString();
11 string b = PDFToPic(PdfPath,ImgPath ,imgDire, ImageFormat.Jpeg);
12
13 if (string.IsNullOrEmpty(b))
14 {
15 b = "出错";
16 }
17
18 Console.WriteLine(b);
19 Console.ReadKey();
20
21 }
22 else
23 {
24 Console.WriteLine("无参数");
25 Console.ReadKey();
26 }
27 */
28
29 #endregion
30
31
32 #region gs
33
34 if (args != null && args.Length > 0)
35 {
36 string PdfPath = args[0].ToString();
37 string HtmlDic = args[1].ToString();
38 string ImgPath = args[2].ToString();
39
40 string b = GetImage(PdfPath, HtmlDic, ImgPath, ImageFormat.Jpeg);
41
42 if (string.IsNullOrEmpty(b))
43 {
44 b = "出错";
45 }
46 Console.WriteLine(b);
47 }
48 else
49 {
50 Console.WriteLine("无参数");
51 }
52 #endregion
53 // GetImage(@"C:\Users\Administrator.DVT\Desktop\fu.pdf", @"C:\Users\Administrator.DVT\Desktop\imgs", @"C:\Users\Administrator.DVT\Desktop\imgs",ImageFormat.Jpeg);
54
55 }