Skip to content

Commit 21babf8

Browse files
Keep tabs for spacing
1 parent 85472b6 commit 21babf8

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

WkHtmlToXSharp/PdfGlobalSettings.cs

+29-29
Original file line numberDiff line numberDiff line change
@@ -36,49 +36,49 @@ public enum PdfOrientation {
3636
Landscape
3737
}
3838

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+
}
4553

46-
public class PdfSize
47-
{
48-
/// <summary>
49-
/// What size paper should we use
50-
/// </summary>
51-
public PdfPageSize PageSize { get; set; }
52-
}
53-
5454
public class PdfGlobalSettings
5555
{
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+
};
6161

6262
public int Dpi { get; set; }
6363
public int ImageDpi { get; set; }
6464
public int ImageQuality { get; set; }
6565
public PdfMarginSettings Margin { get { return _margins; } }
6666

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>
7070
public bool Outline { get; set; }
7171

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>
7575
public string Out { get; set; }
7676
public PdfOrientation Orientation { get; set; }
7777

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; } }
8282

8383
// TODO: Add as many as you need..
8484
}

0 commit comments

Comments
 (0)