Example #1
0
def drawLaterSpecialLandscape(canv, doc):
    """
    This is the Template of any later drawn Landscape Oriented Page
    """
    canv.saveState()
    frame, pagesize = doc.getFrame(doc.template_id)
    canv.setPageSize(pagesize)
    canv.setFont(ar.base_fonts()["normal"], doc.fontSize)
    canv.restoreState()
Example #2
0
def drawFirstLandscape(canv, doc):
    """
    This is the Title Page Template (Landscape Oriented)
    """
    canv.saveState()
    frame, pagesize = doc.getFrame(doc.template_id)
    canv.setPageSize(pagesize)
    canv.setFont(ar.base_fonts()["normal"], doc.fontSize)
    canv.restoreState()
Example #3
0
def drawFirstPage(canv, doc):
    """
    This is the Title Page Template (Portrait Oriented)
    """
    canv.saveState()
    #set Page Size
    frame, pagesize = doc.getFrame(doc.template_id)

    canv.setPageSize(pagesize)
    canv.setFont(base_fonts()["normal"], doc.fontSize)

    addPlugin(canv, doc, frame=frame, talkative=True)

    canv.restoreState()
Example #4
0
def drawLaterPage(canv, doc):
    """
    This is the Template of any following Portrait Oriented Page
    """
    canv.saveState()
    #set Page Size

    frame, pagesize = doc.getFrame(doc.template_id)

    canv.setPageSize(pagesize)
    canv.setFont(base_fonts()["normal"], doc.fontSize)

    addPlugin(canv, doc, frame=frame)

    canv.restoreState()
Example #5
0
def drawLaterSpecialPage(canv, doc):
    """
    This is the Template of any later drawn Landscape Oriented Page
    """
    canv.saveState()

    #set Page Size and
    #some variables

    frame, pagesize = doc.getFrame(doc.template_id)

    #print(pagesize[0],pagesize[1])

    canv.setPageSize(pagesize)
    canv.setFont(base_fonts()["normal"], doc.fontSize)

    addPlugin(canv, doc, frame=frame)

    canv.restoreState()