View Single Post
Old 08-01-2018, 04:43 AM   #8
tafr
Junior Member
tafr began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2018
Device: edge
Ok, as mentioned we run the conversion from a python program: Where is "extra css" located?

try:
self.utils.report.info("Konverterer fra XHTML til DOCX...")
process = self.utils.filesystem.run(["/usr/bin/ebook-convert",
html_file,
os.path.join(temp_docxdir, epub.identifier() + ".docx"),
"--no-chapters-in-toc",
"--toc-threshold=0",
"--docx-page-size=a4",
"--linearize-tables",

"--embed-font-family=Verdana", # microsoft fonts must be installed (sudo apt-get install ttf-mscorefonts-installer)
"--docx-page-margin-top=42",
"--docx-page-margin-bottom=42",
"--docx-page-margin-left=70",
"--docx-page-margin-right=56",
"--base-font-size=13"])
tafr is offline   Reply With Quote