Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-04-2024, 05:09 AM   #1
megi
Junior Member
megi began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2024
Device: Kindle
Angry How to get rid of blank parts after the end of the section?

I'm using the news fetching feature and sometimes I turn it into a PDF just in order to read in PDF(sometimes printing important ones) but I don't want it to be interrupted by blanks and want to continue or flow it just right after the end of the section or page. Is it possible to disable page breaks?

megi is offline   Reply With Quote
Old 07-04-2024, 09:05 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: 44,072
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, those arent page breaks those are the ends on individual internal HTML files. Conversion to PDF doesnt have any facilities for merging individual HTML files, though you can do so by converting to MOBI and then converting the MOBI file to PDF while using extra css to suppress page breaks as conversion to MOBI will merge everything into a sngle html file internally.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-04-2024, 09:31 AM   #3
megi
Junior Member
megi began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2024
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
using extra css to suppress page breaks as conversion to MOBI will merge everything into a sngle html file internally.
Extra CSS? Can you share it if possible because I tried what you said (from MOBI to PDF) and it didn't work.
megi is offline   Reply With Quote
Old 07-04-2024, 09:43 AM   #4
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: 44,072
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In the look & feel section of the conversion dialog there is an extra css setting add something like

Code:
* { page-break-after: avoid !important; page-break-before: avoid !important }
kovidgoyal is offline   Reply With Quote
Old 07-04-2024, 09:56 AM   #5
megi
Junior Member
megi began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2024
Device: Kindle
Unhappy

Quote:
Originally Posted by kovidgoyal View Post
In the look & feel section of the conversion dialog there is an extra css setting add something like

Code:
* { page-break-after: avoid !important; page-break-before: avoid !important }
Didn't work and also I have 800+ page more(original page amount is 66) right now with random page breaks.
megi is offline   Reply With Quote
Advert
Old 07-04-2024, 10:10 AM   #6
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,072
Karma: 6425108
Join Date: Sep 2020
Device: Calibre E-book viewer
I've tested the extra CSS out of curiosity and it seemed to work for me (got 43 pages), although I see some random breaks too.
Attached Files
File Type: mobi calibre.mobi (436.8 KB, 4 views)
File Type: pdf calibre.pdf (678.2 KB, 7 views)
Comfy.n is offline   Reply With Quote
Old 07-04-2024, 10:22 AM   #7
megi
Junior Member
megi began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2024
Device: Kindle
Quote:
Originally Posted by Comfy.n View Post
I've tested the extra CSS out of curiosity and it seemed to work for me (got 43 pages), although I see some random breaks too.
Before which step should I apply that code? Before converting EPUB to MOBI or before converting MOBI to PDF?
megi is offline   Reply With Quote
Old 07-04-2024, 10:28 AM   #8
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,072
Karma: 6425108
Join Date: Sep 2020
Device: Calibre E-book viewer
I've tried it first on epub to mobi *and* on mobi to pdf. Then I tried only on mobi to pdf, got the same results apparently
Comfy.n is offline   Reply With Quote
Old 07-04-2024, 10:35 AM   #9
megi
Junior Member
megi began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2024
Device: Kindle
Angry

This is what I do(not more than 100 page):


Click image for larger version

Name:	epubmobi.png
Views:	16
Size:	16.3 KB
ID:	209369

This is what I got(700+ page)

Click image for larger version

Name:	pagebreak.png
Views:	20
Size:	72.9 KB
ID:	209371


Last edited by BetterRed; 07-04-2024 at 05:31 PM. Reason: thumbnail OVERSIZE images - see guidline #9
megi is offline   Reply With Quote
Old Today, 06:30 AM   #10
megi
Junior Member
megi began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2024
Device: Kindle
Quote:
Originally Posted by megi View Post
This is what I do(not more than 100 page):


Attachment 209369

This is what I got(700+ page)

Attachment 209371


Any help?
megi is offline   Reply With Quote
Old Today, 10:52 AM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,035
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
There is no Magic Way.

You craft fixes (when possible), by reverse engineering THE CODE or CSS, based upon what you found.

This requires you understand Basic HTML / CSS

Those junk areas could be any of a dozen different things (or combinations )

A blank IMAGE as filler (very common in the old days)
<br />
<p class="break"> non-breaking space </p> or using <div>

styling (in the CSS or inline ) with
margin-bottom:
padding-bottom
minimum-height
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting rid of the Bottom Margin's Blank Space denbertu KOReader 8 01-16-2020 10:58 AM
How do I get rid of blank pages between indexes in E-PUBin Coolmeadow Kid Editor 0 01-10-2017 08:05 PM
Getting rid of a blank page iroquois Sigil 4 04-01-2012 12:33 AM
get rid of blank line html code Blurr Calibre 4 12-28-2009 09:20 PM
epub to pdf conversion: blank page inserted before any section Nicoo Calibre 0 12-06-2009 06:10 PM


All times are GMT -4. The time now is 01:19 PM.


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