---
title: "Edit a PDF server-side — PDF automation server | Nutrient"
canonical_url: "https://www.nutrient.io/guides/document-engine/editor/architecture-diagram/"
md_url: "https://www.nutrient.io/guides/document-engine/editor/architecture-diagram.md"
last_updated: "2026-06-08T09:14:14.337Z"
description: "When you edit a document — for example, by rotating all pages — Document Engine saves a new asset for that document and updates all relevant annotations."
---

# Architecture diagram

When you edit a document — for example, by rotating all pages — Document Engine saves a new asset for that document and updates all relevant annotations.![You rotate a document page and Document Engine stores the new PDF file.](@/assets/guides/document-engine/editing-a-document.png)

1. Your service requests that the Document Engine [rotates all pages of the document](https://www.nutrient.io/api/reference/document-engine/upstream/#model/RotateAction). Document Engine retrieves the document from the asset storage for processing.

2. Document Engine transforms the document, rotating all of its pages.

3. Document Engine persists the transformed document in the asset storage without deleting the original. It returns the new document’s properties to your service.
---

## Related pages

- [Document processing and editing server](/guides/document-engine/editor.md)
- [Add pages to PDFs](/guides/document-engine/editor/add-page.md)
- [Merge multiple PDF files](/guides/document-engine/editor/merge-or-combine.md)
- [Changing PDF page numbers or labels](/guides/document-engine/editor/page-label.md)
- [Password protect PDFs](/guides/document-engine/editor/password-pdfs.md)
- [Add watermarks to PDFs](/guides/document-engine/editor/watermark.md)

