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:
Kovid Goyal 2009-01-09 17:25:55 -08:00
parent d269e83191
commit f46fedab9b

View File

@ -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):