Last active
November 16, 2019 16:16
-
-
Save Jagathishrex/e3fe818fc3106410ba1c729ad4d0d4a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pdf ; // to store pdf data | |
let canvas; // to render pdf | |
let isPageRendering; // to check if the pdf is currently rendering | |
let pageRenderingQueue = null; // to store next page number to render | |
let canvasContext; // context of canvas | |
let totalPages; // total pages of pdf | |
let currentPageNum = 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment