Esempio n. 1
0
 def convert(self, oeb, output_path, input_plugin, opts, log):
     from calibre.ebooks.docx.writer.container import DOCX
     from calibre.ebooks.docx.writer.from_html import Convert
     docx = DOCX(opts, log)
     Convert(oeb, docx)()
     docx.write(output_path, oeb)
     if opts.extract_to:
         from calibre.ebooks.docx.dump import do_dump
         do_dump(output_path, opts.extract_to)
Esempio n. 2
0
 def convert(self, oeb, output_path, input_plugin, opts, log):
     from calibre.ebooks.docx.writer.container import DOCX
     from calibre.ebooks.docx.writer.from_html import Convert
     docx = DOCX(opts, log)
     Convert(oeb, docx)()
     docx.write(output_path, oeb)
     if opts.extract_to:
         from calibre.ebooks.docx.dump import do_dump
         do_dump(output_path, opts.extract_to)
Esempio n. 3
0
 def convert(self, oeb, output_path, input_plugin, opts, log):
     from calibre.ebooks.docx.writer.container import DOCX
     from calibre.ebooks.docx.writer.from_html import Convert
     docx = DOCX(opts, log)
     self.convert_metadata(oeb)
     Convert(oeb, docx, self.mi, not opts.docx_no_cover, not opts.docx_no_toc)()
     docx.write(output_path, self.mi)
     if opts.extract_to:
         from calibre.ebooks.docx.dump import do_dump
         do_dump(output_path, opts.extract_to)
Esempio n. 4
0
 def convert(self, oeb, output_path, input_plugin, opts, log):
     from calibre.ebooks.docx.writer.container import DOCX
     from calibre.ebooks.docx.writer.from_html import Convert
     docx = DOCX(opts, log)
     self.convert_metadata(oeb)
     Convert(oeb, docx, self.mi, not opts.docx_no_cover, not opts.docx_no_toc)()
     docx.write(output_path, self.mi)
     if opts.extract_to:
         from calibre.ebooks.docx.dump import do_dump
         do_dump(output_path, opts.extract_to)