View Single Post
Old 07-29-2010, 05:38 AM   #1
Junior Member
ibarro began at the beginning.
Posts: 3
Karma: 10
Join Date: Jul 2010
Device: none
HTML to PDF, blank pages after each chapter

Hi All,

I'm converting a very basic HTML file to PDF format with the following command line:

ebook-convert [input file] [output file] --authors ["Author Name"] --title ["Title of Book"] --chapter //h:h1

and after each chapter, I have a blank page. The HTML file itself is very basic:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">> > <html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>
<style type="text/css">
/* <![CDATA[ */>[list of styles is here...]
/* ]]> */
<h1>PAGE 1 HEADER</h1>
<p>Page 1 contents</p>
<h1>PAGE 2 HEADER</h1>
<p>Page 2 contents</p>
<h1>PAGE 3 HEADER</h1>
<p>Page 3 contents</p>

Does anyone know why the end of each chapter has a blank page inserted afterwards? I'm not getting this if I use the same command line to output to epub or mobi.

Many thanks!
ibarro is offline   Reply With Quote