# Print function not working properly when using large files

**URL:** <https://pdfjs.community/t/print-function-not-working-properly-when-using-large-files/2945>\
**Category:** Bug Reports\
**Tags:** pdfjs-express\
**Created:** [November 7, 2023, 2:33pm UTC](https://pdfjs.community/t/print-function-not-working-properly-when-using-large-files/2945 "2023-11-07T14:33:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oseco](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@oseco](https://pdfjs.community/u/oseco)\
**Post date:** [November 7, 2023, 2:33pm UTC](https://pdfjs.community/t/print-function-not-working-properly-when-using-large-files/2945/1 "2023-11-07T14:33:35Z")

</div>

Hi,

I’m facing an issue regarding PDF.js Express version 8.7

When trying to export a document more than 30MB long, specifically those which contain a large amount of images, the **print** function located in the settings menu doesn’t work properly. Besides taking too long to process the document, it also leaves many blank pages, neither printing any annotations made in that page, nor the content of the page itself.

I was wondering whether this issue is performance-related, or if it’s due to using the free trial version of the product. I would also want to know if there is any other way to export a PDF file with all its annotations on it, because I don’t really want to print the file but just download it.

Thank you very much. Looking forward to your response.

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [November 7, 2023, 9:30pm UTC](https://pdfjs.community/t/print-function-not-working-properly-when-using-large-files/2945/3 "2023-11-07T21:30:38Z")

</div>

Hi there,

Thanks for reaching out to pdf.js express forums,

We will add the print issues to our backlog.

To merge the annotations with the document, you will need to use the merge API as shown in this guide:

> **[Merging XFDF using the Express REST API | Documentation](https://pdfjs.express/documentation/utils/merge)**

Then calling the downloadPdf API should include the annotations.

Best regards,  
Kevin Kim
