2017-02-24 119 views
0

我想从pdf.js获取当前页码当前PDF页面数量时,用户pdf.js:我们怎样才能使用pdf.js

点击的一些Button.I'm不在IFRAME打开PDF文件一样,

下面的链接

using iframe

我使用的PDF格式.js文件直接从GitHub Project

我的问题是我怎么能得到

pdf.js

+0

试试这个http://stackoverflow.com/a/35887722 .......................... 。 ......................... –

回答

1

PDFViewerApplication.pdfViewer.currentPageNumber是getter and setter当前页码。例子:

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

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