'Set up the standard page templates'

def __init__(self, title='Sahana    Eden', margin=((0.5 * inch), (0.3 * inch), (0.5 * inch), (0.3 * inch)), margin_inside=(0.0 * inch), paper_size=None, paper_alignment='Portrait'):

    self.output = StringIO()
    self.defaultPage = paper_alignment
    if paper_size:
        self.paper_size = paper_size
    elif (current.deployment_settings.get_paper_size() == 'Letter'):
        self.paper_size = LETTER
    else:
        self.paper_size = A4
    self.topMargin = margin[0]
    self.leftMargin = margin[1]
    self.bottomMargin = margin[2]
    self.rightMargin = margin[3]
    self.insideMargin = margin_inside
    BaseDocTemplate.__init__(self, self.output, title=title, leftMargin=self.leftMargin, rightMargin=self.rightMargin, topMargin=self.topMargin, bottomMargin=self.bottomMargin)
    self.MINIMUM_MARGIN_SIZE = (0.2 * inch)
    self.body_flowable = None
    self._calc()
