最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - pdf.js : How can we get the current pdf page number using pdf.js - Stack Overflow

programmeradmin1浏览0评论

I want to get the current page number from pdf.js when user

Click's some Button.I'm not opening pdf file in iframe like that

Below link

using iframe

I'm using the pdf.js Directly From the GitHub Project

My Question is how can I get the Current page Number from

pdf.js

I want to get the current page number from pdf.js when user

Click's some Button.I'm not opening pdf file in iframe like that

Below link

using iframe

I'm using the pdf.js Directly From the GitHub Project

My Question is how can I get the Current page Number from

pdf.js

Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Feb 24, 2017 at 12:56 Mari SelvanMari Selvan 3,7924 gold badges24 silver badges42 bronze badges 1
  • try this stackoverflow./a/35887722 .......................... .......................... – Marcus Li Commented Apr 11, 2017 at 2:27
Add a ment  | 

1 Answer 1

Reset to default 7

PDFViewerApplication.pdfViewer.currentPageNumber is a getter and setter. Examples:

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

// Move two pages forward
PDFViewerApplication.pdfViewer.currentPageNumber += 2;
发布评论

评论列表(0)

  1. 暂无评论