Class PageSize
- java.lang.Object
-
- com.openhtmltopdf.css.parser.property.PageSize
-
public class PageSize extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private CSSPrimitiveValue_pageHeightprivate CSSPrimitiveValue_pageWidthstatic PageSizeA3ISO A3 media: 297mm wide and 420mm highstatic PageSizeA4IS0 A4 media: 210 mm wide and 297 mm highstatic PageSizeA5ISO A5 media: 148mm wide and 210 mm highstatic PageSizeB3ISO B3 media: 353mm wide by 500mm highstatic PageSizeB4ISO B4 media: 250mm wide by 353mm highstatic PageSizeLEDGERNorth American ledger: 11 inches wide by 17 inches highstatic PageSizeLEGALNorth American legal: 8.5 inches wide by 14 inches highstatic PageSizeLETTERNorth American letter media: 8.5 inches wide and 11 inches highprivate static java.util.Map<java.lang.String,PageSize>SIZE_MAP
-
Constructor Summary
Constructors Modifier Constructor Description privatePageSize()privatePageSize(CSSPrimitiveValue width, CSSPrimitiveValue height)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CSSPrimitiveValuegetPageHeight()static PageSizegetPageSize(java.lang.String pageSize)CSSPrimitiveValuegetPageWidth()
-
-
-
Field Detail
-
A5
public static final PageSize A5
ISO A5 media: 148mm wide and 210 mm high
-
A4
public static final PageSize A4
IS0 A4 media: 210 mm wide and 297 mm high
-
A3
public static final PageSize A3
ISO A3 media: 297mm wide and 420mm high
-
B3
public static final PageSize B3
ISO B3 media: 353mm wide by 500mm high
-
B4
public static final PageSize B4
ISO B4 media: 250mm wide by 353mm high
-
LETTER
public static final PageSize LETTER
North American letter media: 8.5 inches wide and 11 inches high
-
LEGAL
public static final PageSize LEGAL
North American legal: 8.5 inches wide by 14 inches high
-
LEDGER
public static final PageSize LEDGER
North American ledger: 11 inches wide by 17 inches high
-
SIZE_MAP
private static final java.util.Map<java.lang.String,PageSize> SIZE_MAP
-
_pageWidth
private CSSPrimitiveValue _pageWidth
-
_pageHeight
private CSSPrimitiveValue _pageHeight
-
-
Constructor Detail
-
PageSize
private PageSize(CSSPrimitiveValue width, CSSPrimitiveValue height)
-
PageSize
private PageSize()
-
-
Method Detail
-
getPageHeight
public CSSPrimitiveValue getPageHeight()
-
getPageWidth
public CSSPrimitiveValue getPageWidth()
-
getPageSize
public static PageSize getPageSize(java.lang.String pageSize)
-
-