'Internally used method to adjust the document margins so that the
table will fit into the available space'

def tweakMargin(self, tableWidth):

    availableMarginSpace = self.getAvailableMarginSpace()
    currentOverlap = (tableWidth - self.tempDoc.printable_width)
    endCol = (len(self.labels) - 1)
    rowCnt = len(self.data)
    if (currentOverlap < availableMarginSpace):
        _pdf = self.pdf
        _pdf.leftMargin -= (currentOverlap / 2)
        _pdf.rightMargin -= (currentOverlap / 2)
        return True
    return False
