Register Guidelines E-Books Search Today's Posts Mark Forums Read

 MobileRead Forums HTML to PDF, printing page numbers

 12-10-2012, 05:29 PM #1 jbuckh Junior Member   Posts: 3 Karma: 10 Join Date: Dec 2012 Device: none HTML to PDF, printing page numbers Just started using Calibre and it has been great so far. Sorry if this question has been answered elsewhere, I can't figure it out for the life of me. I'm compiling a large HTML file then using Calibre via command line to convert it to a PDF. In order to publish it, I need the PDF to include page numbers on each page but they aren't showing. I've looked everywhere but I can't figure out how to get the page numbers to show. Any thoughts? Below I've included the command I'm using to run Calibre. Code: xvfb-run ebook-convert public_html/pm4id.html public_html/pm4id.pdf --output-profile=default --smarten-punctuation --cover=public_html/Images/cover.jpg --margin-left=72 --margin-right=72 --margin-top=72 --margin-bottom=72 --pretty-print --level1-toc=//h:h1 --level2-toc=//h:h2
 12-10-2012, 11:32 PM #2 kovidgoyal Creator of calibre     Posts: 22,500 Karma: 2944574 Join Date: Oct 2006 Location: Mumbai, India Device: Various calibre's PDF Output engine currently has no support for generating page numbers. __________________ Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. Last edited by kovidgoyal; 12-10-2012 at 11:43 PM.
 Enthusiast
 12-11-2012, 01:59 PM #3 jbuckh Junior Member   Posts: 3 Karma: 10 Join Date: Dec 2012 Device: none Dang, well thanks for getting back to me. Calibre is a great program.
12-12-2012, 02:33 PM   #4
jbuckh
Junior Member

Posts: 3
Karma: 10
Join Date: Dec 2012
Device: none
I wanted to write my solution here in case anyone else needs it.

I send my pdf which was created by Calibre through pdflatex to create page numbers. Below I copied my .tex file that is being sent to pdflatex. pdf.pdf is the name of the Calibre generated pdf.

Quote:
This tex file will place a page number on the center of each page. It will also ignore the first page (mine is a cover image that does not need a page number).

The command I used is here:
Quote:
 pdflatex -output-directory=directory {tex file name}