pdfjsLib.GlobalWorkerOptions.workerSrc = '//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.16.105/pdf.worker.min.js';
Use a jQuery data cache object to store previously rendered canvases.
jQuery elegantly manages the button clicks and slider changes while PDF.js handles the heavy lifting of parsing the PDF binary data and painting it onto the canvas.
pdfjsLib.GlobalWorkerOptions.workerSrc = '//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.16.105/pdf.worker.min.js';
Use a jQuery data cache object to store previously rendered canvases.
jQuery elegantly manages the button clicks and slider changes while PDF.js handles the heavy lifting of parsing the PDF binary data and painting it onto the canvas.