---
title: "Save documents as PDFs on the web | Nutrient"
canonical_url: "https://www.nutrient.io/guides/web/save-a-document/save-as/"
md_url: "https://www.nutrient.io/guides/web/save-a-document/save-as.md"
last_updated: "2026-10-26T00:00:00.000Z"
description: "Save a modified PDF as a new file with Nutrient Web SDK by disabling autosave and exporting the document."
---

# Save documents as PDFs on the web

Use the Save As workflow when users need to edit a read-only document and save the result as a new file.

To create this workflow, combine disabled autosave with a custom toolbar button.

## Configure Save As

Follow these steps to configure Save As in Nutrient Web SDK.

1. Set `autoSaveMode` to `DISABLED` to turn off routine automatic saving.

2. Add a custom Save As button to the toolbar.

3. Export the PDF.

4. Send the exported PDF to your storage backend.

Pass [`NutrientViewer.AutoSaveMode.DISABLED`](https://www.nutrient.io/api/web/enums/NutrientViewer.AutoSaveMode.html#disabled) to [`autoSaveMode`](https://www.nutrient.io/api/web/interfaces/Configuration.html#autosavemode) in the configuration object:

```js

NutrientViewer.load({
  autoSaveMode: NutrientViewer.AutoSaveMode.DISABLED
}).catch((error) => {
  console.error("Failed to load document:", error.message);
});

```

Create a custom Save As button in the toolbar. This button exports the document and sends it to a new location. For implementation details, refer to the [create a new tool in the viewer](https://www.nutrient.io/guides/web/user-interface/main-toolbar/create-a-new-tool.md) guide.

A Save As workflow that leaves the source document untouched is available in standalone deployments only. In a server-backed deployment, [`instance.exportPDF()`](https://www.nutrient.io/api/web/classes/NutrientViewer.Instance.html#exportpdf) fetches the document from Document Engine, so the export reflects what Document Engine has stored. Calling [`instance.save()`](https://www.nutrient.io/api/web/classes/NutrientViewer.Instance.html#save) first adds the pending annotations to the export, but it also writes them to the source document. `instance.applyOperations()` and Document Editor Save also persist pending changes before applying operations, even with autosave disabled. Printing also writes pending annotations to the source document. With Document Engine 1.17.0 or later, the default `NutrientViewer.PrintMode.DOM` saves pending annotations to the source document before it renders. Excluding annotations from the print call avoids that save.

The Save As button handler exports the PDF and sends it to your remote server. For more information, refer to the [save PDFs to a remote server using JavaScript](https://www.nutrient.io/guides/web/save-a-document/to-remote-server.md) guide.

If you use Document Engine, upload the PDF with its upload API to create a new file. For more information, refer to the [upload a document](https://www.nutrient.io/guides/document-engine/file-management/create-a-document-from-upload.md) guide.

If you use Nutrient Web SDK without Document Engine, your backend persists the PDF in its storage.
---

## Related pages

- [Enable incremental saving of PDFs using JavaScript](/guides/web/features/document-processing.md)
- [Autosaving PDF changes in our JavaScript viewer](/guides/web/features/saving.md)
- [Save PDF files using JavaScript](/guides/web/save-a-document.md)
- [Choose the right stored-document processing and export workflow](/guides/web/save-a-document/choose-the-right-stored-document-processing-and-export-workflow.md)
- [Detecting unsaved changes in PDFs](/guides/web/save-a-document/detect-unsaved-changes.md)
- [Save PDFs to an ArrayBuffer using JavaScript](/guides/web/save-a-document/to-arraybuffer.md)
- [Save PDFs to Document Engine using JavaScript](/guides/web/save-a-document/to-document-engine.md)
- [Save PDFs to local storage using JavaScript](/guides/web/save-a-document/to-local-storage.md)
- [Save PDFs to a remote server using JavaScript](/guides/web/save-a-document/to-remote-server.md)
- [Save PDF without annotations using JavaScript](/guides/web/save-a-document/without-annotations.md)

