Print PDFs without Opening Using JavaScript

You can trigger printing a PDF without displaying anything to the user. This can be achieved by running the SDK in headless mode by setting the headless option in the configuration options:

PSPDFKit.load({
  headless: true
  // ...
}).then((instance) => {
  instance.print();
});

This will load the PDF without displaying anything, and the PDF will print as usual when the print method is called.