繁体   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