Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 12-10-2016, 01:54 AM   #1
valida
Junior Member
valida began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2016
Device: PC
Line Height problem when converting from epub to pdf

HI

I am converting a lot of epub to pdf (among other things, to take advantage of the highlight feature).

But the conversion process increases the line height so when I select a line and highlight it, the highlight goes over the line above and the line below.

See how the highlights overlap:




Whereas on other pdf, the overlap is almost none existant:



I have tried to change the Line Height, the Minimum line height and the line size (in look and feel) and also the font size, font type but I always get these overlaps.

So which settings should I change so my Pdf highlights doesn't overlap on the lines above and below?
valida is offline   Reply With Quote
Old 12-10-2016, 02:39 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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
PDF has no concept of line height. PDF just contains individual glyphs drawn at specified screen locations. How highlights are drawn depend entirely on what program you are using to view/annotate the PDF. You'd have to ask that programs developers about why the highlight looks like that.
kovidgoyal is offline   Reply With Quote
Old 12-12-2016, 07:04 AM   #3
valida
Junior Member
valida began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2016
Device: PC
Thanks for your reply! I used Adobe Acrobat as a pdf reader. What is strange in your answer about pdf not having line height is that both of the pdf shown above have been created via calibre from the same epub (but with different conversion settings, I lost the settings I used for the pdf with the none overlapping highlights).

Because I didn't change Adobe Acrobat settings, that the source is the same and the only that changed between the two pdfs are the conversion settings in calibre, I was looking at the calibre settings as the culprit.

But what you seems to say is that, the conversion process as no control over the highlight heights, is that correct?
valida is offline   Reply With Quote
Old 12-12-2016, 08:01 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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, that is correct.
kovidgoyal is offline   Reply With Quote
Old 12-12-2016, 11:38 AM   #5
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by valida View Post
Thanks for your reply! ...both of the pdf shown above have been created via calibre from the same epub (but with different conversion settings, I lost the settings I used for the pdf with the none overlapping highlights).
...
as a note that might help working out what difference existed in the settings for the two PDFs:

The second, older, PDF that seems to have "properly sized" highlights uses a different font and displays horrid kerning while the first PDF displays very nice kerning. This makes it seem that at some point there was a font substitution. This likely has occured in the PDF reading app when either there was no embedded font or the embedded font couldn't be used.
dwig is offline   Reply With Quote
Old 12-12-2016, 11:53 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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yeah I would guess it is font related. PDF files generated by calibre have embedded and subsetted fonts in them. It's likely that the PDF viewer calculates highlight height based on the font metrics of the embedded font.
kovidgoyal is offline   Reply With Quote
Old 12-12-2016, 05:25 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,569
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@valida - Adobe Acrobat ain't the only kid on the block that can highlight text. Some of the others have the ability to set the 'thickness' of the highlight pen, IIRC the PDFill PDF reader/editor (Windows) has that feature.

BR
BetterRed is offline   Reply With Quote
Old 10-06-2017, 05:44 AM   #8
valida
Junior Member
valida began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2016
Device: PC
I could solve this by simply "printing" the pdf (as another .pdf) with the problematic line-height.

So, open your pdf, go to file, print, leave everything as it is (page = all, size = fit) and press ok.

Somehow, the print process fix the line-height. I use Adobe Acrobat.

Last edited by valida; 10-06-2017 at 05:50 AM.
valida is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line Height (Tibetan font) EPUB to PDF ncs Conversion 0 02-05-2014 02:21 AM
[Old Thread] Epub Output: Line Height greenapple Conversion 20 01-27-2013 09:27 AM
Epub line height problem dorotie Calibre 5 08-24-2010 03:23 PM
Problem converting pdf to epub smartin Calibre 3 05-02-2010 06:55 AM
PDF to ePub (New line problem) Dark123 Calibre 3 02-13-2010 08:41 PM


All times are GMT -4. The time now is 08:14 PM.


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