title_body: How to insert calculated page numbers based on word counting into an ePub file? I want to paginate an ePub file based on how many words are there per page, then to insert the "page numbers" into the ePub file. In this case, I will have the same page numbers while I read this file on different devices.
  
  Is there a way to achieve this? Thanks!
upvoted_answer: It's not possible to dynamically change content in epub2 books, however, you could theoretically use JavaScript in an epub3 book to re-paginate a book, however, this would be overkill, since the epub3 standard supports page numbers. 
  
  Unfortunately, very few freeware apps besides iBooks (iOS, macOS) and Azardi (Windows, macOS, Linux) support epub3 page numbers.
  
  If your book is a textbook, you might want to consider using a print-on-demand service provider.