Next / Previous / Contents / Shipman's homepage

34. legalPage()

Returns a new PageDims instance for legal-size paper in portrait orientation.

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

def legalPage():
    return PageDims(
        pageBox=Box(FoDim("8.5", "in"), FoDim("14", "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")))