簡體   English   中英

pdf.js:我們如何使用pdf.js獲取當前的pdf頁碼

[英]pdf.js : How can we get the current pdf page number using pdf.js

我想在用戶時從pdf.js獲取當前頁碼

點擊一下Button.I我沒有在iframe中打開pdf文件

以下鏈接

使用iframe

我正在使用直接來自GitHub項目的pdf.js

我的問題是如何從中獲取當前頁碼

pdf.js

PDFViewerApplication.pdfViewer.currentPageNumber是一個getter和setter 例子:

// Go to page 5
PDFViewerApplication.pdfViewer.currentPageNumber = 5;

// Move two pages forward
PDFViewerApplication.pdfViewer.currentPageNumber += 2;

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM