Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-24-2025, 07:04 PM   #1
wahredua
Member
wahredua began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2025
Device: Kindle Paperwhite (7th Generation)
Where to find/view epub pagination?

I frequently send epubs to my Kindle Paperwhite using 'Send to Kindle' via email. When I open the book on my Paperwhite, or in the Kindle iOS app, there are fixed page numbers displayed, e.g., Page 1 of 250. I always assumed these page numbers were embedded into the epub file. So out of curiosity, I opened a few books in Calibre's editor but I can't find pages anywhere in the html or metadata. Where does that pagination come from? Does Amazon/Kindle add the pages into the file during the 'Send to Kindle' process? Or is Amazon/Kindle reading the pages in the epub file itself? If it's embedded into the epub file, is there a way to view how many pages a book has inside Calibre (in the editor or elsewhere)?
wahredua is offline   Reply With Quote
Old 05-25-2025, 04:40 AM   #2
georgemk
Addict
georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.
 
Posts: 243
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
There are no pages as such in an epub. The page is determined by the viewer used (Kindle, Kobo, Calibre etc) as changing say the size of the font will change the number of words per screen and so the total number of pages in the book. It is dynamic so the file itself doesn't need to concern itself with page numbers.
georgemk is offline   Reply With Quote
Advert
Old 05-25-2025, 10:55 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
In addition to @georgemk

Many devices calculates the progress and/or page counts using proprietary algorithms , so it will be rare they match between brands. (APNX is a Kindle thing and became my standard of reference when selecting next reads in Calibre )

Count Pages Plugin is configurable and is useful to populate custom columns in Calibre with Page and Reading level stats to aid in your selections. These do NOT affect the device.

FWIW I wish Academia would just drop the concept of PAGE and reference JUST by offset from a major division (CPW). eg. Chapter 42: Paragraph 27: Word 13

That works at any Zoom or font size.
theducks is offline   Reply With Quote
Old 05-25-2025, 01:13 PM   #4
wahredua
Member
wahredua began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2025
Device: Kindle Paperwhite (7th Generation)
The pages displayed on Kindle do not change. If I change the font or text size, the total number of pages stay the same, it's fixed. I'm wondering: if the epub file does not contain those page numbers, then where is Kindle getting them from?
wahredua is offline   Reply With Quote
Old 05-25-2025, 02:40 PM   #5
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,178
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
You sent it "send to Kindle", Amazon then converted the epub to KFX or AZW, so that is were I would look for where the page numbers came from.

bernie
Quote:
Originally Posted by wahredua View Post
I frequently send epubs to my Kindle Paperwhite using 'Send to Kindle' via email. When I open the book on my Paperwhite, or in the Kindle iOS app, there are fixed page numbers displayed, e.g., Page 1 of 250. I always assumed these page numbers were embedded into the epub file. So out of curiosity, I opened a few books in Calibre's editor but I can't find pages anywhere in the html or metadata. Where does that pagination come from? Does Amazon/Kindle add the pages into the file during the 'Send to Kindle' process? Or is Amazon/Kindle reading the pages in the epub file itself? If it's embedded into the epub file, is there a way to view how many pages a book has inside Calibre (in the editor or elsewhere)?
gbm is offline   Reply With Quote
Advert
Old 05-25-2025, 03:39 PM   #6
wahredua
Member
wahredua began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2025
Device: Kindle Paperwhite (7th Generation)
Quote:
Originally Posted by gbm View Post
You sent it "send to Kindle", Amazon then converted the epub to KFX or AZW, so that is were I would look for where the page numbers came from.

bernie
Thank you for the suggestion.

I connected my Kindle to my PC and imported the converted ebook file (KFX) into Calibre. Since KFX doesn't work with the editor, I converted to AZW3 and then opened it in the editor. I still don't see page numbers in the html or metadata.

However, I did notice that in my Kindle's file structure, each book folder contains a data subfolder with a .pagination.cache file. So I'm assuming that the page numbers were generated/added during the epub to KFX conversion process and then stored in this file.
wahredua is offline   Reply With Quote
Old 05-25-2025, 05:48 PM   #7
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,178
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
In the html of the books file look for <p class="classwhatever" id="page_number"> and <span id="page_number"> .

Use regex search id="page_\d+"

bernie
Quote:
Originally Posted by wahredua View Post
Thank you for the suggestion.

I connected my Kindle to my PC and imported the converted ebook file (KFX) into Calibre. Since KFX doesn't work with the editor, I converted to AZW3 and then opened it in the editor. I still don't see page numbers in the html or metadata.

However, I did notice that in my Kindle's file structure, each book folder contains a data subfolder with a .pagination.cache file. So I'm assuming that the page numbers were generated/added during the epub to KFX conversion process and then stored in this file.
gbm is offline   Reply With Quote
Old 05-25-2025, 06:51 PM   #8
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,198
Karma: 1355861
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by wahredua View Post
Thank you for the suggestion.

I connected my Kindle to my PC and imported the converted ebook file (KFX) into Calibre. Since KFX doesn't work with the editor, I converted to AZW3 and then opened it in the editor. I still don't see page numbers in the html or metadata.

However, I did notice that in my Kindle's file structure, each book folder contains a data subfolder with a .pagination.cache file. So I'm assuming that the page numbers were generated/added during the epub to KFX conversion process and then stored in this file.
When you send a book to kindle via calibre, there is a device option that generates and sends the APNX page count.
thiago.eec is offline   Reply With Quote
Old 05-25-2025, 08:27 PM   #9
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,178
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
I just email a ebook that I have owned for 25 years--original format was lit--no page number in the epub sent to Amazon. The KFX I received from Amazon has page numbers in the text.

e.g.

Code:
<p id="page_253" class="class_s4">
 <span id="page_254"></span>
How Amazon determined these numbers I do not know.

bernie
Quote:
Originally Posted by wahredua View Post
I frequently send epubs to my Kindle Paperwhite using 'Send to Kindle' via email. When I open the book on my Paperwhite, or in the Kindle iOS app, there are fixed page numbers displayed, e.g., Page 1 of 250. I always assumed these page numbers were embedded into the epub file. So out of curiosity, I opened a few books in Calibre's editor but I can't find pages anywhere in the html or metadata. Where does that pagination come from? Does Amazon/Kindle add the pages into the file during the 'Send to Kindle' process? Or is Amazon/Kindle reading the pages in the epub file itself? If it's embedded into the epub file, is there a way to view how many pages a book has inside Calibre (in the editor or elsewhere)?
gbm is offline   Reply With Quote
Old 05-25-2025, 09:13 PM   #10
wahredua
Member
wahredua began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2025
Device: Kindle Paperwhite (7th Generation)
Quote:
Originally Posted by thiago.eec View Post
When you send a book to kindle via calibre, there is a device option that generates and sends the APNX page count.
I don't use send to Kindle via Calibre. I attach the epub to an email and send it to my Send-to-Kindle email address. So the page count isn't being generated by Calibre.
wahredua is offline   Reply With Quote
Old 05-25-2025, 09:42 PM   #11
wahredua
Member
wahredua began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2025
Device: Kindle Paperwhite (7th Generation)
Quote:
Originally Posted by gbm View Post
In the html of the books file look for <p class="classwhatever" id="page_number"> and <span id="page_number"> .

Use regex search id="page_\d+"

bernie
Quote:
Originally Posted by gbm View Post
I just email a ebook that I have owned for 25 years--original format was lit--no page number in the epub sent to Amazon. The KFX I received from Amazon has page numbers in the text.

e.g.

Code:
<p id="page_253" class="class_s4">
 <span id="page_254"></span>
How Amazon determined these numbers I do not know.

bernie
Thank you. I searched the html of the AZW3 text files and was able to find where page numbers had been inserted, e.g., <span id="page_5"> that weren't in the html of the original epub.
wahredua is offline   Reply With Quote
Old 05-26-2025, 07:25 AM   #12
georgemk
Addict
georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.
 
Posts: 243
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
Quote:
Originally Posted by wahredua View Post
The pages displayed on Kindle do not change. If I change the font or text size, the total number of pages stay the same, it's fixed.
I've never owned a Kindle but on my Kobo, the page number count does change when you change the font size. One book went from 4k pages to 88k pages when I changed the font size to the largest available instead of the usual 40% of maximum size (the control is a slider not a numeric control so no idea what the font size would be in real life).
georgemk is offline   Reply With Quote
Old 05-26-2025, 02:10 PM   #13
wahredua
Member
wahredua began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2025
Device: Kindle Paperwhite (7th Generation)
Quote:
Originally Posted by georgemk View Post
I've never owned a Kindle but on my Kobo, the page number count does change when you change the font size. One book went from 4k pages to 88k pages when I changed the font size to the largest available instead of the usual 40% of maximum size (the control is a slider not a numeric control so no idea what the font size would be in real life).
I believe most devices work like that, where the page count is dynamic and depends on font and text size, but Kindle is different. The vast majority of books I read on my Kindle, whether I bought them from Amazon, or bought them elsewhere and sent them to my Kindle, have a fixed page count that stays the same regardless of font and text size.
wahredua is offline   Reply With Quote
Old 05-26-2025, 06:49 PM   #14
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,335
Karma: 168808725
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by georgemk View Post
I've never owned a Kindle but on my Kobo, the page number count does change when you change the font size. One book went from 4k pages to 88k pages when I changed the font size to the largest available instead of the usual 40% of maximum size (the control is a slider not a numeric control so no idea what the font size would be in real life).
If you enable showing Adobe EPUB page numbers in your Kobo's settings and are reading ePub (not kepub), you will see page numbers on the side of the page that do not change with font size changes (similar to Amazon APNX page numbering). While reading an ePub. changing the font size does not alter the book page count. Kepub does use page per screen. You can also have page numbers from a print edition embedded in an ePub using any one of several methods to store the page map.

You can go back and read several threads with arguments over which is best.

Last edited by DNSB; 05-26-2025 at 07:13 PM. Reason: Added immutability of page count for book when reading ePub.
DNSB is offline   Reply With Quote
Reply

Tags
epub, pages, send to kindle


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epub to pdf pagination kerliza Conversion 8 03-23-2014 02:26 AM
Converting epub into pdf with print pagination luciano Workshop 6 09-05-2012 05:15 PM
Keeping Pagination in ePub azores ePub 5 03-28-2012 12:17 PM
EPub pagination ccowie Calibre 11 02-09-2011 10:59 PM
Pagination fichier ePub et PRS-505 Grimaud Sony Reader 10 12-05-2009 10:18 PM


All times are GMT -4. The time now is 11:43 PM.


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