Top Fields Constructors Methods
com.openhtmltopdf.css.parser.property

public Class PageSize

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map, com.openhtmltopdf.css.parser.CSSPrimitiveValue, .PropertyValue

Field Summary

Modifier and TypeField and Description
private CSSPrimitiveValue
private CSSPrimitiveValue
public static final PageSize
A3

ISO A3 media: 297mm wide and 420mm high

public static final PageSize
A4

IS0 A4 media: 210 mm wide and 297 mm high

public static final PageSize
A5

ISO A5 media: 148mm wide and 210 mm high

public static final PageSize
B3

ISO B3 media: 353mm wide by 500mm high

public static final PageSize
B4

ISO B4 media: 250mm wide by 353mm high

public static final PageSize
LEDGER

North American ledger: 11 inches wide by 17 inches high

public static final PageSize
LEGAL

North American legal: 8.5 inches wide by 14 inches high

public static final PageSize
LETTER

North American letter media: 8.5 inches wide and 11 inches high

private static final Map<String, PageSize>

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

Modifier and TypeMethod and Description
public CSSPrimitiveValue
public static PageSize
getPageSize(String pageSize)

public CSSPrimitiveValue
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_pageHeightback to summary
private CSSPrimitiveValue _pageHeight
_pageWidthback to summary
private CSSPrimitiveValue _pageWidth
A3back to summary
public static final PageSize A3

ISO A3 media: 297mm wide and 420mm high

A4back to summary
public static final PageSize A4

IS0 A4 media: 210 mm wide and 297 mm high

A5back to summary
public static final PageSize A5

ISO A5 media: 148mm wide and 210 mm high

B3back to summary
public static final PageSize B3

ISO B3 media: 353mm wide by 500mm high

B4back to summary
public static final PageSize B4

ISO B4 media: 250mm wide by 353mm high

LEDGERback to summary
public static final PageSize LEDGER

North American ledger: 11 inches wide by 17 inches high

LETTERback to summary
public static final PageSize LETTER

North American letter media: 8.5 inches wide and 11 inches high

SIZE_MAPback to summary
private static final Map<String, PageSize> SIZE_MAP

Constructor Detail

PageSizeback to summary
private PageSize(CSSPrimitiveValue width, CSSPrimitiveValue height)
PageSizeback to summary
private PageSize()

Method Detail

getPageHeightback to summary
public CSSPrimitiveValue getPageHeight()
getPageSizeback to summary
public static PageSize getPageSize(String pageSize)
getPageWidthback to summary
public CSSPrimitiveValue getPageWidth()