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 07-28-2016, 05:06 AM   #1
albert_z
Junior Member
albert_z began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2016
Device: none
[convert to pdf] Total number of pages in footer

I know I can count current pages in the footer using something like

Code:
ebook-convert infile outfile.pdf --pdf-footer-template "Page _PAGENUM_"
That works. However, I'd very much like to display the page number in relation to the total, e.g. "Page 7 of 9" and the like.

I've looked for a way to get that, not found any, and now turn to the wisdom of the community...

Thank you very much!
albert_z is offline   Reply With Quote
Old 07-28-2016, 11:05 PM   #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
There is no way to do that. Doing that would require rendering the PDF twice, since the only way to know the total number of pages is to actually render the PDF.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-29-2016, 04:42 AM   #3
albert_z
Junior Member
albert_z began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2016
Device: none
Ok, thank you. Rendering twice is probably what I'll do then -- really want the "2 of 8" style.
albert_z is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura H2O Any way to get total number of pages info without opening book? howyoudoin Kobo Developer's Corner 1 02-14-2016 04:31 AM
How does the calibre viewer calculate page number and total pages? auspex Development 9 09-24-2014 08:10 AM
Total number of pages xaim Marvin 5 11-17-2013 09:59 AM
Do the number of pages in an ebook differ from the number of pages in a physical book Phoebemy General Discussions 12 07-19-2012 09:25 AM
Does Kobo display total number of pages? foghat Kobo Reader 24 06-12-2010 01:10 AM


All times are GMT -4. The time now is 09:04 PM.


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