I have 2 questions revolving around displaying pdfs in a browser.
When I try to store a PDF.js document in local storage it does not work and crashes the javascript. Code below.
PDFJS.getDocument(array).then(function getPdfHelloWorld(_pdfDoc) {
localStorage.setItem("pageNum", pageNum);
localStorage.setItem("pdf-obj", JSON.stringify(_pdfDoc));
pdfDoc = _pdfDoc;
renderPage(pageNum);
});
Any ideas?
Also since I may not be able to use paging this way I may need to look into using viewer.js for display and paging. I am wondering if there is a way to use viewer.js with raw pdf source rather than a file because that is all I have available to me. Thanks for any help.