@@ -26,16 +26,17 @@ public class PageSize {
2626 private final double height ;
2727 private final double width ;
2828
29- // Reference for predefined page size constants: https://www.agooddaytoprint.com/page/paper-size-chart-faq
30- public static final PageSize ISO_A4 = new PageSize (29.7 , 21.0 ); // ISO_A4 size in cm
31- public static final PageSize US_LEGAL = new PageSize (35.56 , 21.59 ); // US_LEGAL size in cm
32- public static final PageSize ANSI_TABLOID = new PageSize (43.18 , 27.94 ); // ANSI_TABLOID size in cm
33- public static final PageSize US_LETTER = new PageSize (27.94 , 21.59 ); // US_LETTER size in cm
29+ // Reference for predefined page size constants:
30+ // https://www.agooddaytoprint.com/page/paper-size-chart-faq
31+ public static final PageSize ISO_A4 = new PageSize (29.7 , 21.0 ); // ISO_A4 size in cm
32+ public static final PageSize US_LEGAL = new PageSize (35.56 , 21.59 ); // US_LEGAL size in cm
33+ public static final PageSize ANSI_TABLOID = new PageSize (43.18 , 27.94 ); // ANSI_TABLOID size in cm
34+ public static final PageSize US_LETTER = new PageSize (27.94 , 21.59 ); // US_LETTER size in cm
3435
3536 public PageSize () {
3637 // Initialize with defaults. ISO_A4 paper size defaults in cms.
3738 this (ISO_A4 .getHeight (), ISO_A4 .getWidth ());
38- }
39+ }
3940
4041 public PageSize (double height , double width ) {
4142 this .height = height ;
@@ -65,9 +66,8 @@ public Map<String, Object> toMap() {
6566 return options ;
6667 }
6768
68- @ Override
69- public String toString () {
69+ @ Override
70+ public String toString () {
7071 return "PageSize[width=" + this .getWidth () + ", height=" + this .getHeight () + "]" ;
7172 }
72-
73- }
73+ }
0 commit comments