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

You can save a document without annotations using the excludeAnnotations API:

NutrientViewer.load(configuration)
.then(async (instance) => {
const arrayBuffer = await instance.exportPDF({
excludeAnnotations: true
});
})
.catch((error) => {
console.error("Failed to load document:", error.message);
});