This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/web/print/auto-print.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Silent & auto print PDF using JavaScript [without dialog] | Nutrient

If you want to start printing a PDF the moment it’s loaded, you can do this with the instance.print() API method.

Call this method when the SDK has finished loading, and a printing dialog indicating the PDF has started printing will appear:

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