Next / Previous / Contents / Shipman's homepage

32. letterPage()

Returns a new PageDims instance for letter paper in portrait orientation.

fosox.py
# - - -   l e t t e r P a g e

def letterPage():
    return PageDims(
        pageBox=Box(FoDim("8.5", "in"), FoDim("11", "in")),
        pageMargins=MarginSet(top=FoDim("1", "in"),
            bot=FoDim("1", "in"), left=FoDim("1", "in"),
            right=FoDim("1", "in")),
        frameMargins=MarginSet(top=FoDim("3", "pc"),
            bot=FoDim("3", "pc"), left=FoDim("0", "pc"),
            right=FoDim("0", "pc")),
        bodyMargins=MarginSet(top=FoDim("3", "pc"),
            bot=FoDim("3", "pc"), left=FoDim("0", "pc"),
            right=FoDim("0", "pc")))