mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 02:55:14 +01:00
Fix #491
This commit is contained in:
parent
7878bb85ed
commit
0064ac86c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue