mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #491
This commit is contained in:
parent
7878bb85ed
commit
0064ac86c1
@ -36,7 +36,7 @@ def generate_html(pathtopdf, logger):
|
||||
pf = PersistentTemporaryFile('.html')
|
||||
pf.close()
|
||||
# This is neccessary as pdftohtml doesn't always (linux) respect absolute paths
|
||||
cmd = PDFTOHTML + ' -noframes -p -nomerge "%s" "%s"'%(pathtopdf, os.path.basename(pf.name))
|
||||
cmd = PDFTOHTML + ' -enc UTF-8 -noframes -p -nomerge "%s" "%s"'%(pathtopdf, os.path.basename(pf.name))
|
||||
cwd = os.getcwd()
|
||||
try:
|
||||
os.chdir(os.path.dirname(pf.name))
|
||||
|
Loading…
x
Reference in New Issue
Block a user