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-24-2012, 11:51 PM   #1
Vykan12
Junior Member
Vykan12 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch
Epub to PDF can't remove page breaks between headers

I managed to get a good font size and margins, but can't seem to fix the issue of page breaks between headers. I tried heuristic processing and "insert blank line between paragraphs" and a couple other things, no dice.

Just to be clear, I provided 2 examples (click the image to make it larger).





Oh, another quick question. I noticed when bulk converting that the spacing between paragraphs wasn't consistent between pdfs. Is there a way to standardize it to some arbitrary value? Eg/ 0.5 inches.
Vykan12 is offline   Reply With Quote
Old 07-25-2012, 12:02 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: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Structure detection ->insert page breaks before.
kovidgoyal is online now   Reply With Quote
Advert
Old 07-25-2012, 12:28 AM   #3
Vykan12
Junior Member
Vykan12 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch
Quote:
Structure detection ->insert page breaks before.
It asks for an Xpath expression, and I honestly don't have a clue what to do with that :/ I looked at the tutorial, I think I have to do something with the h1 and h2 tags, not sure what.

I also tried changing chapter mark from pagebreak to none, still nothing.
Vykan12 is offline   Reply With Quote
Old 07-25-2012, 12:45 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: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use /
kovidgoyal is online now   Reply With Quote
Old 07-25-2012, 12:46 AM   #5
Vykan12
Junior Member
Vykan12 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch
That's what it is by default
Vykan12 is offline   Reply With Quote
Advert
Old 07-25-2012, 12:48 AM   #6
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: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, by default it is //*[name()='h1' or name()='h2']
kovidgoyal is online now   Reply With Quote
Old 07-25-2012, 01:00 AM   #7
Vykan12
Junior Member
Vykan12 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch
http://postimage.org/image/75nw5eykl/

It's //*[name()='h1' or name()='h2'] etc by default for detect chapters at (Xpath expression) but / for Insert page break before (Xpath expression) for me. Calibre 0.8.61 on Windows.

Edit: I tried changing detect chapters at to /, still nada.
Vykan12 is offline   Reply With Quote
Old 07-25-2012, 01:03 AM   #8
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: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Then your book has the page breaks already defined in it. Edit it with tweak book in calibre or sigil to remove them, or use filter css in calibre.
kovidgoyal is online now   Reply With Quote
Old 07-25-2012, 02:33 AM   #9
Vykan12
Junior Member
Vykan12 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch
Bah that seems too complicated, at least if it has to be done manually for each epub.

Well aside from that issue, I came up with some nice preferences for epub -> pdf, at least for PC viewing.

Base font size: 15.0 pt
Insert blank line between paragraphs [check]
Line size: 1.5 em
Enable heuristic processing [check]
Left margin: 50.0 pt
Right margin: 50.0 pt
Insert page breaks before (Xpath expression): /

Everything else usual defaults.
Vykan12 is offline   Reply With Quote
Old 07-25-2012, 02:46 AM   #10
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by Vykan12 View Post
Well aside from that issue, I came up with some nice preferences for epub -> pdf, at least for PC viewing.
If you are viewing on a PC why go through the trouble of converting to PDF?
DoctorOhh is offline   Reply With Quote
Old 07-25-2012, 02:55 AM   #11
Vykan12
Junior Member
Vykan12 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch
Quote:
If you are viewing on a PC why go through the trouble of converting to PDF?
Because I like adobe reader better than any epub reader I've come across, particularly for being able to highlight text.
Vykan12 is offline   Reply With Quote
Old 07-25-2012, 03:01 AM   #12
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by Vykan12 View Post
Because I like adobe reader better than any epub reader I've come across, particularly for being able to highlight text.
Thanks for the response, if I ever go back to using a PC to read I'll keep your experience in mind.
DoctorOhh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF to EPUB - page breaks pops1959 Calibre 0 01-13-2011 07:28 PM
Page breaks - PDF input to ePub output JoTH Calibre 9 11-18-2010 04:35 PM
Can I remove PDF author info and/or page headers? cloudyvisions Calibre 0 03-05-2010 11:48 PM
Remove PDF page headers ? JohnB Calibre 9 03-27-2009 01:19 PM


All times are GMT -4. The time now is 05:14 AM.


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