# Save documents as PDFs on the web

It’s not uncommon for customers to want a setup where a document is read-only but users can still edit it and then use the Save As functionality to save the modified document to a new location. Nutrient supports saving documents with the Save As functionality.

To use the Save As functionality:

- Set the autosave mode to `DISABLED` so the changes in the loaded Nutrient Web SDK instance aren’t persisted on the backend.

You can do this by passing [`NutrientViewer.AutoSaveMode.DISABLED`](https://www.nutrient.io/api/web/NutrientViewer.html#.AutoSaveMode) to the [`autoSaveMode`](https://www.nutrient.io/api/web/NutrientViewer.Configuration.html#autoSaveMode) property in the configuration object passed to [`NutrientViewer.load()`](https://www.nutrient.io/api/web/NutrientViewer.html#.load):

```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 that lets the user export the document in its current state to a new location. For the implementation, refer to our guide on how to [create a new tool in our viewer](https://www.nutrient.io/guides/web/user-interface/main-toolbar/create-a-new-tool.md).

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

- If you’re using Document Engine, you can upload the PDF to Document Engine via its upload API to create a new file. Refer to our guide on [uploading a document](https://www.nutrient.io/guides/document-engine/file-management/create-a-document-from-upload.md) for more information.

- If you’re using Nutrient Web SDK, your backend now should persist the PDF in its storage.
---

## Related pages

- [Auto-saving PDF changes in our JavaScript viewer](/guides/web/features/saving.md)
- [Enable incremental saving of PDFs using JavaScript](/guides/web/features/document-processing.md)
- [Save PDF files using JavaScript](/guides/web/save-a-document.md)
- [Detecting unsaved changes in PDFs](/guides/web/save-a-document/detect-unsaved-changes.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)
- [Save PDFs to a remote server using JavaScript](/guides/web/save-a-document/to-remote-server.md)
- [Save PDFs to an ArrayBuffer using JavaScript](/guides/web/save-a-document/to-arraybuffer.md)
- [Save PDF without annotations using JavaScript](/guides/web/save-a-document/without-annotations.md)

