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?
해결되었습니다! 솔루션으로 이동.
토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.
조회 수
답글
좋아요 수
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