code: def write(self):
          
          html = self.render()
  
          if self.file_type == 'pdf':
              self.write_pdf(html)
          else:
              with codecs.open(self.destination_file, 'w',
                               encoding='utf_8') as outfile:
                  outfile.write(html)
docs: Writes generated presentation code into the destination file.