Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-09-2016, 01:20 PM   #1
elizara
Junior Member
elizara began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2016
Device: none
EPUB -> PDF conversion, chapter is cut off

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, 172 views)
File Type: pdf bugreport.pdf (158.7 KB, 156 views)
elizara is offline   Reply With Quote
Old 08-10-2016, 03:37 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...f3044b90574d19
kovidgoyal is online now   Reply With Quote
Advert
Old 08-10-2016, 01:51 PM   #3
elizara
Junior Member
elizara began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2016
Device: none
Fabulous, thank you!
elizara is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xpath to insert chapter breaks - but chapter name cut off ? Rob557 Conversion 2 03-06-2014 06:59 AM
Chapter missing after epub-to-epub conversion MSJim Conversion 1 03-08-2013 11:13 AM
Text to ePub Chapter conversion dvd8n Conversion 6 10-19-2012 03:11 AM
images are cut off during mobi to PDF conversion readman Conversion 2 06-30-2012 09:05 AM
ordered list cut of after epub->mobi conversion lela1031 Conversion 5 03-02-2012 12:29 PM


All times are GMT -4. The time now is 06:02 AM.


MobileRead.com is a privately owned, operated and funded community.