'This will create a new empty PDF document.
Data then needs to be added to this document.
@param title: The title that will appear at the top of the document
and in the filename
@return: An empty pdf document'

def newDocument(self, title, header, footer, filename=None, heading=None):

    now = self.request.now.isoformat()[:19].replace('T', '    ')
    docTitle = ('%s    %s' % (title, now))
    if (filename == None):
        self.filename = ('%s_%s.pdf' % (title, now))
    else:
        self.filename = ('%s_%s.pdf' % (filename, now))
    self.output = StringIO()
    self.doc = EdenDocTemplate(self.output, title=docTitle)
    self.doc.setPageTemplates(header, footer)
    self.content = []
    if (heading == None):
        heading = title
    self.title = heading
    self.prevtitle = heading
    self.setPortrait()
    self.leftMargin = (0.4 * inch)
    self.rightMargin = (0.4 * inch)
    self.topMargin = (0.4 * inch)
    self.bottomMargin = (0.4 * inch)
    self.MINIMUM_MARGIN_SIZE = (0.3 * inch)
    self.setMargins()
