The pdf viewer from pdf.js has it built in to show the current page out of total pages:
https://mozilla.github.io/pdf.js/web/viewer.html
I have a pdf embedded on my page within an iframe.
Is it possible to use this on my page so that
<div id="counter"></div>
Is filled with the same information of currentpage / totalpages
and if current page isn't possible, just a totalpages count would be a satisfactory fallback.
I tried accessing the ID
of the iframe
, but was getting cross-domain rejections.