Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 05:09 AM   #1
megi
Junior Member
megi began at the beginning.
 
Posts: 5
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 Today, 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,071
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 Today, 09:31 AM   #3
megi
Junior Member
megi began at the beginning.
 
Posts: 5
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 Today, 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,071
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 Today, 09:56 AM   #5
megi
Junior Member
megi began at the beginning.
 
Posts: 5
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 Today, 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, 0 views)
File Type: pdf calibre.pdf (678.2 KB, 2 views)
Comfy.n is offline   Reply With Quote
Old Today, 10:22 AM   #7
megi
Junior Member
megi began at the beginning.
 
Posts: 5
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 Today, 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 Today, 10:35 AM   #9
megi
Junior Member
megi began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2024
Device: Kindle
Angry

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





This is what I got(700+ page)



megi 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 12:32 PM.


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