# Xpdf merger bot working for large files

**URL:** <https://pdfjs.community/t/xpdf-merger-bot-working-for-large-files/581>\
**Category:** Technical Support\
**Created:** [March 8, 2021, 10:12am UTC](https://pdfjs.community/t/xpdf-merger-bot-working-for-large-files/581 "2021-03-08T10:12:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aggarwal.lavish436](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/aggarwal.lavish436/32/14_2.png) [@aggarwal.lavish436](https://pdfjs.community/u/aggarwal.lavish436)\
**Post date:** [March 8, 2021, 10:12am UTC](https://pdfjs.community/t/xpdf-merger-bot-working-for-large-files/581/1 "2021-03-08T10:12:28Z")

</div>

I am using [https://api.pdfjs.express/xfdf/merge](https://api.pdfjs.express/xfdf/merge). and pdf filw of 30 MB atleast with anotations. but no response is coming. not showing any error. request timeout.

I am using

const data1 = new FormData();  
data1.append(‘xfdf’, xfdfString);  
data1.append(‘file’, blob);  
data1.append(‘headers’, JSON.stringify({  
“Access-Control-Allow-Origin”: ‘\*’  
}));

```
		// Process the file
		const response = await fetch('https://api.pdfjs.express/xfdf/merge', {
		  method: 'post',
		  body: data1
		}).then(resp => resp.json());
```

---

<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:** [March 8, 2021, 5:37pm UTC](https://pdfjs.community/t/xpdf-merger-bot-working-for-large-files/581/2 "2021-03-08T17:37:40Z")

</div>

Hi,

This is expected since the rest API does not support blobs over 5MB. If you want to use larger files with the REST api, you must upload the file to a file server somewhere, and pass the URL to that file instead.

Thanks,  
Logan

---

<div class="post-metadata">

**Author:** ![aggarwal.lavish436](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/aggarwal.lavish436/32/14_2.png) [@aggarwal.lavish436](https://pdfjs.community/u/aggarwal.lavish436)\
**Post date:** [March 9, 2021, 2:34am UTC](https://pdfjs.community/t/xpdf-merger-bot-working-for-large-files/581/3 "2021-03-09T02:34:09Z")

</div>

Means save blob to on my local path ar any complete path

---

<div class="post-metadata">

**Author:** ![aggarwal.lavish436](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/aggarwal.lavish436/32/14_2.png) [@aggarwal.lavish436](https://pdfjs.community/u/aggarwal.lavish436)\
**Post date:** [March 9, 2021, 2:36am UTC](https://pdfjs.community/t/xpdf-merger-bot-working-for-large-files/581/4 "2021-03-09T02:36:11Z")

</div>

can you send me code to save xfdf

---

<div class="post-metadata">

**Author:** ![aggarwal.lavish436](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/aggarwal.lavish436/32/14_2.png) [@aggarwal.lavish436](https://pdfjs.community/u/aggarwal.lavish436)\
**Post date:** [March 9, 2021, 3:32am UTC](https://pdfjs.community/t/xpdf-merger-bot-working-for-large-files/581/5 "2021-03-09T03:32:17Z")

</div>

i have chnage blob to file url in file parameters of api and its working.

Thanks

---

<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:** [March 9, 2021, 3:01pm UTC](https://pdfjs.community/t/xpdf-merger-bot-working-for-large-files/581/6 "2021-03-09T15:01:31Z")

</div>


