# Process files in our server

**URL:** <https://pdfjs.community/t/process-files-in-our-server/1823>\
**Category:** Technical Support\
**Created:** [June 30, 2022, 12:37pm UTC](https://pdfjs.community/t/process-files-in-our-server/1823 "2022-06-30T12:37:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lakshan](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lakshan](https://pdfjs.community/u/lakshan)\
**Post date:** [June 30, 2022, 12:37pm UTC](https://pdfjs.community/t/process-files-in-our-server/1823/1 "2022-06-30T12:37:43Z")

</div>

It seems like files are getting uploaded into a third party server when we are using rest API. Is there any way to do processing in our server (merge())

---

<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:** [June 30, 2022, 12:37pm UTC](https://pdfjs.community/t/process-files-in-our-server/1823/3 "2022-06-30T12:37:48Z")

</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:
- [Server side usage](https://pdfjs.express/documentation/utils/node)
- [Open a document, add annotations, download - 3. Downloading the file](https://pdfjs.express/documentation/use-case/upload-download.8#3.-downloading-the-file)
- [Getting a processed file](https://pdfjs.express/documentation/utils/auth)

APIs:
- [ExternalAnnotationMerger - merge()](https://pdfjs.express/api/7.0/ExternalAnnotationMerger.html#merge__anchor)
- [Annotations.FileAttachmentAnnotation - new FileAttachmentAnnotation()](https://pdfjs.express/api/7.0/Annotations.FileAttachmentAnnotation.html#FileAttachmentAnnotation__anchor)
- [Core.DocumentViewer - setDocumentXFDFRetriever(retriever)](https://pdfjs.express/api/Core.DocumentViewer.html#setDocumentXFDFRetriever__anchor)

Forums:
- [Annotations moving on downloaded pdf when opened in Abode Acrobat and BLUEBEAM](https://pdfjs.community/t/annotations-moving-on-downloaded-pdf-when-opened-in-abode-acrobat-and-bluebeam/1009/6)
- [Merge Rest API - how to flatten PDF?](https://pdfjs.community/t/merge-rest-api-how-to-flatten-pdf/328/1)
- [Git cloning to local repository of the latest demo](https://pdfjs.community/t/git-cloning-to-local-repository-of-the-latest-demo/437/2)

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [June 30, 2022, 5:20pm UTC](https://pdfjs.community/t/process-files-in-our-server/1823/4 "2022-06-30T17:20:54Z")

</div>

Hello lakshan,

The third party server is hosted by PDFTron, here is overview of the REST API: [PDF.js Express Utility API | Documentation](https://pdfjs.express/documentation/utils) you are unable to self host our REST API.

Best regards,  
Tyler Gordon  
Web Development Support Engineer  
PDFTron
