PDF.js Deep Dive 3: getViewport & render

javascript dev.to

Introduction This is the third article in the PDF.js Deep Dive series. In the previous article, we explored the Display layer's getDocument and getPage methods. In this article, we dive into the getViewport and render methods exposed by the Display layer. All code snippets in this article are based on PDF.js v6.3.289. PDF.js Deep Dive 1: The Architecture of PDF.js PDF.js Deep Dive 2: getDocument & getPage getViewport For page.getViewport, the call lands on the PDFPage

Read Full Tutorial open_in_new
arrow_back Back to Tutorials