'Method to calculate the dimensions of the table'

def getTableMeasurements(self, tempTable):

    tempDoc = EdenDocTemplate(StringIO())
    tempDoc.setPageTemplates((lambda x, y: None), (lambda x, y: None))
    tempDoc.pagesize = portrait(self.paper_size)
    tempDoc.build([tempTable], canvasmaker=canvas.Canvas)
    return (tempTable._colWidths, tempTable._rowHeights)
