![]() |
#1 |
Berti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
EPub to PDF, Orphans and Pagebreaks
I want to convert some of my E-Pubs to PDF.
1) How do I avoid orphans and widows? Callibre seams to ignore these attributes in any place if the CSS. 2) How do I keep Stuff together ? Things like: <h3>Headline</h3> <p class "subtitle">supptitle</p> <p>first paragraph of Text</p> should not be ripped apart. Callibre seams to ignore the "page-break-after: avoid" Last edited by mmat1; 09-27-2014 at 01:56 PM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,242
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre uses webkit's css3 columns implementation to paginate ebooks for conversion to PDF. As far as I know, columns does not support widows and orphans. page-break-after:void should be supported, but note that it is simply a request, if the text does nto fit on the page, it will be broken.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jul 2014
Device: none
|
I've just been experimenting with widows and orphans and may have found a temporary workaround.
The solution is a bit precarious and I wouldn't trust it 100%. At first, the rules seemed to work. However, since webkit doesn't seem to support orphans/widows for screen media, I tested with more books and, indeed, the properties were buggy. They were breaking the text but the following trick seems to work for now: Code:
div { page-break-after:avoid; page-break-before:avoid; page-break-inside:avoid; } p { page-break-after:avoid; widows: 2; orphans: 2; } In my case, adding the page break rules for divs too seems to do the trick (for now) |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF pagebreaks turn to blank lines in mobi | daniel3ub | Conversion | 14 | 08-28-2012 10:31 PM |
Problems with pagebreaks in MOBI | ebookn00b | Kindle Formats | 1 | 04-20-2012 11:12 AM |
How to insert pagebreaks using MS Office on HTMLZ? | gertblij | Conversion | 4 | 10-18-2011 05:47 AM |
Unwanted Pagebreaks | Timoleon | Calibre | 3 | 09-19-2010 07:53 PM |
Epub and pagebreaks | mtravellerh | Calibre | 3 | 11-02-2008 05:30 PM |