Skip to content

Commit aae5300

Browse files
jnyrupkblok
andauthored
Improve Precision of Paper Sizes in Inches to 4 Decimal Places (#2953)
upstream: puppeteer/puppeteer#13087 Co-authored-by: Darío Kondratiuk <[email protected]>
1 parent 1f4c02f commit aae5300

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/PuppeteerSharp/Media/PaperFormat.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,39 +39,39 @@ public PaperFormat(decimal width, decimal height)
3939
public static PaperFormat Ledger => new PaperFormat(17, 11);
4040

4141
/// <summary>
42-
/// A0: 33.1 inches by 46.8 inches.
42+
/// A0: 33.1102 inches by 46.811 inches.
4343
/// </summary>
44-
public static PaperFormat A0 => new PaperFormat(33.1m, 46.8m);
44+
public static PaperFormat A0 => new PaperFormat(33.1102m, 46.811m);
4545

4646
/// <summary>
47-
/// A1: 23.4 inches by 33.1 inches.
47+
/// A1: 23.3858 inches by 33.1102 inches.
4848
/// </summary>
49-
public static PaperFormat A1 => new PaperFormat(23.4m, 33.1m);
49+
public static PaperFormat A1 => new PaperFormat(23.3858m, 33.1102m);
5050

5151
/// <summary>
52-
/// A2: 16.5 inches by 23.4 inches.
52+
/// A2: 16.5354 inches by 23.3858 inches.
5353
/// </summary>
54-
public static PaperFormat A2 => new PaperFormat(16.54m, 23.4m);
54+
public static PaperFormat A2 => new PaperFormat(16.5354m, 23.3858m);
5555

5656
/// <summary>
57-
/// A3: 11.7 inches by 16.5 inches.
57+
/// A3: 11.6929 inches by 16.5354 inches.
5858
/// </summary>
59-
public static PaperFormat A3 => new PaperFormat(11.7m, 16.54m);
59+
public static PaperFormat A3 => new PaperFormat(11.6929m, 16.5354m);
6060

6161
/// <summary>
62-
/// A4: 8.27 inches by 11.7 inches.
62+
/// A4: 8.2677 inches by 11.6929 inches.
6363
/// </summary>
64-
public static PaperFormat A4 => new PaperFormat(8.27m, 11.7m);
64+
public static PaperFormat A4 => new PaperFormat(8.2677m, 11.6929m);
6565

6666
/// <summary>
67-
/// A5: 5.83 inches by 8.27 inches.
67+
/// A5: 5.8268 inches by 8.2677 inches.
6868
/// </summary>
69-
public static PaperFormat A5 => new PaperFormat(5.83m, 8.27m);
69+
public static PaperFormat A5 => new PaperFormat(5.8268m, 8.2677m);
7070

7171
/// <summary>
72-
/// A6: 4.13 inches by 5.83 inches.
72+
/// A6: 4.1339 inches by 5.8268 inches.
7373
/// </summary>
74-
public static PaperFormat A6 => new PaperFormat(4.13m, 5.83m);
74+
public static PaperFormat A6 => new PaperFormat(4.1339m, 5.8268m);
7575

7676
/// <summary>
7777
/// Page width in inches.

0 commit comments

Comments
 (0)