Answers for "pspdfkit global instance unload"

0

pspdfkit global instance unload

let instance = null;
PSPDFKit.load({
  document: "/sales-report.pdf",
  container: ".foo",
}).then((i) => {
  instance = i
})
.then(() => {
  // Unload the given instance
  PSPDFKit.unload(instance)
}).catch((error) => {
  console.error(error.message);
})
Posted by: Guest on June-28-2021

Browse Popular Code Answers by Language