---
title: "Save PDF without annotations using JavaScript | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/web/save-a-document/without-annotations/"
md_url: "https://www.nutrient.io/guides/web/save-a-document/without-annotations.md"
last_updated: "2026-05-23T00:08:18.187Z"
description: "Export PDFs without annotations using JavaScript with Nutrient Web SDK. Use exportPDF() with excludeAnnotations option to save clean documents without markup or comments."
---

# Save PDF without annotations using JavaScript

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

```js

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

```

---

## Related pages

- [Auto-saving PDF changes in our JavaScript viewer](/guides/web/features/saving.md)
- [Save documents as PDFs on the web](/guides/web/save-a-document/save-as.md)
- [Detecting unsaved changes in PDFs](/guides/web/save-a-document/detect-unsaved-changes.md)
- [Save PDF files using JavaScript](/guides/web/save-a-document.md)
- [Enable incremental saving of PDFs using JavaScript](/guides/web/features/document-processing.md)
- [Save PDFs to an ArrayBuffer using JavaScript](/guides/web/save-a-document/to-arraybuffer.md)
- [Save PDFs to a remote server using JavaScript](/guides/web/save-a-document/to-remote-server.md)
- [Save PDFs to local storage using JavaScript](/guides/web/save-a-document/to-local-storage.md)
- [Save PDFs to Document Engine using JavaScript](/guides/web/save-a-document/to-document-engine.md)

