This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/web/print/without-opening-pdf.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Print PDF to printer in JavaScript without preview / opening | Nutrient

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:

NutrientViewer.load({
headless: true
// ...
})
.then((instance) => {
instance.print();
})
.catch((error) => {
console.error("Failed to load document:", error.message);
});

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