mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 21:56:05 +01:00
EPUB output: Don't split on page breaks when converting from PDF files, since PDF files have page breaks after every page. This makes reading EPUBs generated from PDFs more pleasant.
This commit is contained in:
parent
d269e83191
commit
f46fedab9b
1 changed files with 1 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ def txt2opf(path, tdir, opts):
|
|||
def pdf2opf(path, tdir, opts):
|
||||
from calibre.ebooks.lrf.pdf.convert_from import generate_html
|
||||
generate_html(path, tdir)
|
||||
opts.dont_split_on_page_breaks = True
|
||||
return os.path.join(tdir, 'metadata.opf')
|
||||
|
||||
def epub2opf(path, tdir, opts):
|
||||
|
|
|
|||
Loading…
Reference in a new issue