mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04: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
@ -67,6 +67,7 @@ def txt2opf(path, tdir, opts):
|
|||||||
def pdf2opf(path, tdir, opts):
|
def pdf2opf(path, tdir, opts):
|
||||||
from calibre.ebooks.lrf.pdf.convert_from import generate_html
|
from calibre.ebooks.lrf.pdf.convert_from import generate_html
|
||||||
generate_html(path, tdir)
|
generate_html(path, tdir)
|
||||||
|
opts.dont_split_on_page_breaks = True
|
||||||
return os.path.join(tdir, 'metadata.opf')
|
return os.path.join(tdir, 'metadata.opf')
|
||||||
|
|
||||||
def epub2opf(path, tdir, opts):
|
def epub2opf(path, tdir, opts):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user