Quantcast
Channel: MobileRead Forums - Reading and Management
Viewing all articles
Browse latest Browse all 23795

EPUB -> PDF conversion, chapter is cut off

$
0
0
I am using ebook-convert to create a pdf from an epub, and in some cases, the final page of the chapter is missing in the pdf version.

I have created a sample epub that illustrates this behavior when converted to epub (both epub and pdf are attached).

The final section of chapter 1 is:

There were doors all round the hall, but they were all locked; and when Alice had been all the way down one side and up the other, trying every door, she walked sadly down the middle, wondering how she was ever to get out again.

In the pdf, this shows up as:

There were doors all round the hall, but they were all locked; and when Alice had

I am using ebook-convert from calibre version 2.62.0.

Code:

/Applications/calibre.app/Contents/MacOS/ebook-convert --version
ebook-convert (calibre 2.62.0)

The command I am using to convert the document is:

Code:

/Applications/calibre.app/Contents/MacOS/ebook-convert bugreport.epub bugreport.pdf  \
  --debug="debug" \
  --cover="images/cover.jpg" \
  --chapter-mark=pagebreak          \
  --disable-remove-fake-margins \
  --margin-top="60" \
  --margin-bottom="0" \
  --margin-left="60" \
  --margin-right="60" \
  --pdf-default-font-size="12"

The intermediary html files in debug/processed contain the text that is missing from the final pdf.

If there's any further information I can provide please let me know.

Attached Files
File Type: epub bugreport.epub (165.3 KB)
File Type: pdf bugreport.pdf (158.7 KB)

Viewing all articles
Browse latest Browse all 23795

Trending Articles