I'd like to add page-number in the mode-line when looking at a pdf in pdf-view-mode from pdf tools package.
(format "%d/%d " (eval `(pdf-view-current-page))
(pdf-cache-number-of-pages))
This returns what I want in the mode-line.
You might checkout the doom mode-line. It already has this number shown in the pdf mode I am referring to.