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

If you want to start printing a document encoded in Base64, load it by passing it to the document option in your configuration as a data URI, and then call instance.print() when the SDK has loaded.

When the SDK has finished loading, call this method and the printing dialog should display indicating the PDF has started printing:

NutrientViewer.load({
document: "data:application/pdf;base64,<your base 64 string goes here>"
// ...
})
.then((instance) => {
// Print when loaded.
instance.print();
})
.catch((error) => {
console.error("Failed to load document:", error.message);
});