# Save PDF in ours servers

**URL:** <https://pdfjs.community/t/save-pdf-in-ours-servers/1154>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [November 4, 2021, 5:54pm UTC](https://pdfjs.community/t/save-pdf-in-ours-servers/1154 "2021-11-04T17:54:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user20](https://avatars.discourse-cdn.com/v4/letter/u/a587f6/32.png) [@user20](https://pdfjs.community/u/user20)\
**Post date:** [November 4, 2021, 5:54pm UTC](https://pdfjs.community/t/save-pdf-in-ours-servers/1154/1 "2021-11-04T17:54:27Z")

</div>

**Which product are you using?**  
PDF.js Express Plus

**PDF.js Express Version**

**Detailed description of issue**  
{After making annotations in the pdf, how can this document be saved on our servers, generating a history to be able to access these documents with their respective annotations or modifications?}

**Expected behaviour**  
{

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/faf92c156c2c0c547c94ab1fe83ba67b933cdad8.png)  
}

**Does your issue happen with every document, or just one?**  
N/A

**Link to document**  
{[PDF.js Viewer Demo | PDF.js Express](https://pdfjs.express/demo/viewer?product=plus)}

**Code snippet**  
{Provide a relevant code snippet}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [November 4, 2021, 5:54pm UTC](https://pdfjs.community/t/save-pdf-in-ours-servers/1154/3 "2021-11-04T17:54:31Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Saving a document with annotations](https://pdfjs.express/documentation/basic-operations/save-document/save-with-annotations)
- [Create rectangle annotations in PDF.js Express - Other examples](https://pdfjs.express/documentation/annotation/create-annotation-rectangle#other-examples)
- [Create highlight annotations in PDF.js Express](https://pdfjs.express/documentation/annotation/create-annotation-highlight)

APIs:
- [Core.Document - getDownloadLink( [options])](https://pdfjs.express/api/Core.Document.html#getDownloadLink__anchor)
- [UI - downloadPdf( [options])](https://pdfjs.express/api/UI.html#.downloadPdf__anchor)
- [Core.Annotations.RotationUtils - RectangularCustomAnnotationRotationMixin()](https://pdfjs.express/api/Core.Annotations.RotationUtils.html#RectangularCustomAnnotationRotationMixin__anchor)

Forums:
- [Save pdf with annotations on server](https://pdfjs.community/t/save-pdf-with-annotations-on-server/643/3)
- [Saving the updated PDF](https://pdfjs.community/t/saving-the-updated-pdf/104/1)
- [How can I add a spinner or a loader after performing annotations on pdf?](https://pdfjs.community/t/how-can-i-add-a-spinner-or-a-loader-after-performing-annotations-on-pdf/377/1)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [November 5, 2021, 10:06pm UTC](https://pdfjs.community/t/save-pdf-in-ours-servers/1154/4 "2021-11-05T22:06:58Z")

</div>

Hi!

You can export the annotations and the document for use on your server.

The flow is basically this:

[Save the document as a blob and send it to your server](https://pdfjs.express/documentation/basic-operations/save-document/blob)

[Save the annotations as XFDF](https://pdfjs.express/documentation/annotation/import-export) and save them to your database

The next time your user loads the document, grab the XFDF annotations from your database and [import them into the viewer](https://pdfjs.express/documentation/annotation/import-export)

Thanks!  
Logan
