JS how to clear the page cache of a pdf document object pdf.js or how not to save it
When I take a page (page = doc.getPage
), render it and then clean it (page.cleanup()
), the page cache remains in the document object (doc), which accumulates and quickly clogs memory.
JS how to clear the page cache of a pdf document object pdf.js or how not to save it
When I take a page (page = doc.getPage
), render it and then clean it (page.cleanup()
), the page cache remains in the document object (doc), which accumulates and quickly clogs memory.