document: add support to current page and page count

https://bugzilla.gnome.org/show_bug.cgi?id=719508