Quantcast
Channel: MobileRead Forums - Conversion
Viewing all articles
Browse latest Browse all 3902

ePub->pdf: How to narrow space between header and book text?

$
0
0
First, I found that 2.15 almost perfectly converts my ePubs to pdf for reading on my Kindle Paperwhite 2013. I created html template that squeezes author, title, page number, and section into the header: Author and title go to even page, section and page number go to odd page. Template also draws a separation line under the header:
Code:

<div style="font-size:x-small">
<span class="even_page"><p style="float:left">_AUTHOR_</p>
<p style="float:right">_TITLE_</p><span><hr width="100%">
</div>
<div style="font-size:x-small">
<span class="odd_page"><p style="float:left">_SECTION_</p>
<p style="float:right">_PAGENUM_</p><span><hr width="100%">
</div>

I'm also happy with Calibre ability to provide hyphens in pdf if source ePub carries properly distributed soft hyphens (see attached PW2 screenshots).

Unfortunately, one issue rains of my parade: Excessively wide space between header and book text.
This space is present even if I don't draw separation line, it always steals at least one line of text from the page top.

My question is: Are there any means to decrease space between header and text?

Attached Thumbnails
Click image for larger version

Name:	even_page.png
Views:	N/A
Size:	154.4 KB
ID:	133272   Click image for larger version

Name:	odd_page.png
Views:	N/A
Size:	57.1 KB
ID:	133273   Click image for larger version

Name:	hyphens.png
Views:	N/A
Size:	56.3 KB
ID:	133275  

Viewing all articles
Browse latest Browse all 3902

Trending Articles