[英]pdf.js : How can we get the current pdf page number using pdf.js
I want to get the current page number from pdf.js when user 我想在用户时从pdf.js获取当前页码
Click's some Button.I'm not opening pdf file in iframe like that 点击一下Button.I我没有在iframe中打开pdf文件
Below link 以下链接
I'm using the pdf.js Directly From the GitHub Project 我正在使用直接来自GitHub项目的pdf.js
My Question is how can I get the Current page Number from 我的问题是如何从中获取当前页码
pdf.js pdf.js
PDFViewerApplication.pdfViewer.currentPageNumber
is a getter and setter . PDFViewerApplication.pdfViewer.currentPageNumber
是一个getter和setter 。 Examples: 例子:
// Go to page 5
PDFViewerApplication.pdfViewer.currentPageNumber = 5;
// Move two pages forward
PDFViewerApplication.pdfViewer.currentPageNumber += 2;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.