wapform_report library

Constants

kMaxGroups → const int

Functions

isLandscape(String orient) → bool
Whether this is landscape. Accepts L / landscape / 橫 / 水平 / 1 (case-insensitive).
normalizePaper(String paper) → String
Normalizes the paper name, returning the string used for CSS @page size (A4 / letter / B5 …). Returns A4 for an empty or unrecognized value, consistent with upstream WapPage's default.
pageSizeOf(String paper, String orient) → String
Builds the value for CSS @page's size, e.g. "letter landscape".
paperWidthPx(String paper, String orient) → double
The paper content width (px) for the on-screen preview.