epub to pdf conversion results in random blank pages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
For the last number of versions, maybe since 2.40 but I'm using 2.52 now, when I convert epub to pdf, I usually get at least a few blank pages in the pdf output. It seems to occur before a new chapter, but not always. Usually I have the ebook split with each chapter a separate <div> and the chapters split into their own html/xml files.
It never used to do this, but now it's rare I can convert any epub to pdf without this happening. I'm running Arch Linux and I my calibre is updated directly from the calibre-ebook site, not from the repos.
I am attaching the epub input and pdf output of a recent book I produced (it's in Spanish, but it's a fairly short and simple example). The serif font size set for pdf output is 18px, but I try at different pixel sizes and different margin sizes to try to get an output without blank pages, but usually with no success.
I also don't think it has anything to do with page numbering or the auto table of contents output, as I still get blank pages with those options unselected.
Thanks very much for any attention you can give this.
I get no blank pages when converting the attached file on my linux system, apart from one after the cover,w hich you can fix by using the proper svg markupfor full page covers in your epub file. See attached pdf. This was converted with:
ebook-convert ./EstrategiaNob le_160320. epub t.pdf --override- profile- size --paper-size letter --margin-left 50 --margin-right 50 --margin-top 50 --margin-bottom 50 --pdf-default- font-size 18 --pdf-page-numbers -vv