Hi,
Using the below code in page layouts, I tried to get the total page count of the PDF.
<span data-field="total-pages" data-format="default">1</span>
total page count is getting added in pdf. But can't able to fetch the value in JS. When trying to fetch the page count it's giving counter(pages) in console.
How to achieve this functionality?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
To get total number of pages in PDF you can use below code in Javascript:
window.ro.layout.numberOfPages
To get total number of pages in PDF you can use below code in Javascript:
window.ro.layout.numberOfPages
Thanks @DivrajSingh. This solution works fine.
Views
Likes
Replies