How to display whole PDF (not only one page) with PDF.JS?
问题 I've created this demo: http://polishwords.com.pl/dev/pdfjs/test.html It displays one page. I would like to display all pages. One below another, or place some buttons to change page or even better load all standard controls of PDF.JS like in Firefox. How to acomplish this? 回答1: PDFJS has a member variable numPages , so you'd just iterate through them. BUT it's important to remember that getting a page in pdf.js is asynchronous, so the order wouldn't be guaranteed. So you'd need to chain them