@Doitsu : I think that what @polizoto wants is to have the page numbers appear in the ToC as well. This way the resulting EPUB can cope with the lack of support for (proper) page-list in real-world apps.
For example, you can put them as children of the corresponding main ToC entry:
Code:
ToC
- Cover
-- 1
- Preface
-- 2
-- 3
- Introduction
-- 4
-- 5
-- 6
-- 7
- First Chapter
-- 8
-- 9
-- ...
Albeit against the "official blessings" of the IDPF, I think it would be an idea worth exploring, at least as an option in your plugin --- I guess it would not be too difficult for you to implement it, given you have all the machinery in place.
(Not sure how to deal with number gaps, or if collapsing ranges would work. These might be user options.)