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:

  headless: true
  // ...
}).then((instance) => {

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