'Write out the PDF trailer.'

def writeTrailer(self):

    self.write('trailer\n')
    self.write(pdfRepr({u'Size': self.nextObject, u'Root': self.rootObject, u'Info': self.infoObject}))
    self.write((u'\nstartxref\n%d\n%%%%EOF\n' % self.startxref).encode(u'ascii'))
