@@ -36,19 +36,50 @@ public enum PdfOrientation {
36
36
Landscape
37
37
}
38
38
39
+ public enum PdfPageSize
40
+ {
41
+ A4 , B5 , Letter , Legal , Executive , A0 , A1 , A2 , A3 , A5 , A6 , A7 ,
42
+ A8 , A9 , B0 , B1 , B10 , B2 , B3 , B4 , B6 , B7 , B8 , B9 , C5E ,
43
+ Comm10E , DLE , Folio , Ledger , Tabloid , Custom
44
+ }
45
+
46
+ public class PdfSize
47
+ {
48
+ /// <summary>
49
+ /// What size paper should we use
50
+ /// </summary>
51
+ public PdfPageSize PageSize { get ; set ; }
52
+ }
53
+
39
54
public class PdfGlobalSettings
40
55
{
41
- private PdfMarginSettings _margins = new PdfMarginSettings ( ) ;
56
+ private readonly PdfMarginSettings _margins = new PdfMarginSettings ( ) ;
57
+ private readonly PdfSize _size = new PdfSize ( )
58
+ {
59
+ PageSize = PdfPageSize . A4
60
+ } ;
42
61
43
62
public int Dpi { get ; set ; }
44
63
public int ImageDpi { get ; set ; }
45
64
public int ImageQuality { get ; set ; }
46
65
public PdfMarginSettings Margin { get { return _margins ; } }
66
+
67
+ /// <summary>
68
+ /// Should we generate an outline and put it into the pdf file
69
+ /// </summary>
47
70
public bool Outline { get ; set ; }
48
71
72
+ /// <summary>
73
+ /// The file where in to store the output
74
+ /// </summary>
49
75
public string Out { get ; set ; }
50
76
public PdfOrientation Orientation { get ; set ; }
51
77
78
+ /// <summary>
79
+ /// Size related settings
80
+ /// </summary>
81
+ public PdfSize Size { get { return _size ; } }
82
+
52
83
// TODO: Add as many as you need..
53
84
}
54
85
}
0 commit comments