@@ -36,49 +36,49 @@ 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
- }
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
+ }
45
53
46
- public class PdfSize
47
- {
48
- /// <summary>
49
- /// What size paper should we use
50
- /// </summary>
51
- public PdfPageSize PageSize { get ; set ; }
52
- }
53
-
54
54
public class PdfGlobalSettings
55
55
{
56
- private PdfMarginSettings _margins = new PdfMarginSettings ( ) ;
57
- private PdfSize _size = new PdfSize ( )
58
- {
59
- PageSize = PdfPageSize . A4
60
- } ;
56
+ private readonly PdfMarginSettings _margins = new PdfMarginSettings ( ) ;
57
+ private readonly PdfSize _size = new PdfSize ( )
58
+ {
59
+ PageSize = PdfPageSize . A4
60
+ } ;
61
61
62
62
public int Dpi { get ; set ; }
63
63
public int ImageDpi { get ; set ; }
64
64
public int ImageQuality { get ; set ; }
65
65
public PdfMarginSettings Margin { get { return _margins ; } }
66
66
67
- /// <summary>
68
- /// Should we generate an outline and put it into the pdf file
69
- /// </summary>
67
+ /// <summary>
68
+ /// Should we generate an outline and put it into the pdf file
69
+ /// </summary>
70
70
public bool Outline { get ; set ; }
71
71
72
- /// <summary>
73
- /// The file where in to store the output
74
- /// </summary>
72
+ /// <summary>
73
+ /// The file where in to store the output
74
+ /// </summary>
75
75
public string Out { get ; set ; }
76
76
public PdfOrientation Orientation { get ; set ; }
77
77
78
- /// <summary>
79
- /// Size related settings
80
- /// </summary>
81
- public PdfSize Size { get { return _size ; } }
78
+ /// <summary>
79
+ /// Size related settings
80
+ /// </summary>
81
+ public PdfSize Size { get { return _size ; } }
82
82
83
83
// TODO: Add as many as you need..
84
84
}
0 commit comments