'Method to create a paragraph that may be inserted into the document
@param text: The text for the paragraph
@param append: If True then the paragraph will be stored in the
document flow ready for generating the pdf.
@return The paragraph
This method can return the paragraph rather than inserting into the
document. This is useful if the paragraph needs to be first
inserted in another flowable, before being added to the document.
An example of when this is useful is when large amounts of text
(such as a comment) are added to a cell of a table.'

def addParagraph(self, text, style=None, append=True):

    if (text != ''):
        if (style == None):
            styleSheet = getSampleStyleSheet()
            style = styleSheet['Normal']
        para = Paragraph(text, style)
        if append:
            self.content.append(para)
        return para
    return ''
