Print PDFs from URLs Using JavaScript

If you want to start printing a document from a URL, load it by passing it to the document option in your configuration.

Then, call instance.print() when the SDK has loaded. The printing dialog should display indicating the PDF has started printing:

PSPDFKit.load({
  document: url
  // ...
}).then((instance) => {
  // Print when loaded.
  //
  instance.print();
});