Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Apr 24, 2023 1:47 pm

Hi

we are using spire pdf to apply the watermark in microservice.
I have loaded a large pdf file (more than 1GB) and applied a watermark on all pages.
It is consuming more memory when loading and apply watermark

Is it possible to load and apply watermark batch by batch on single large file?

Note : input document is passing in stream format so i am using the LoadAsStream method

sterlingfordev
 
Posts: 13
Joined: Wed Jan 25, 2023 5:31 am

Tue Apr 25, 2023 2:41 am

Hi,

Thank you for your inquiry.

For your requirements, I suggest a solution where you split your large PDF document into multiple PDF documents, add the watermark to each PDF document separately, and finally merge all the PDF documents into one document.

Here is the help documentation for splitting and merging PDF documents.

Split PDF into Multiple PDF Files:https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/NET-Split-PDF-Simply-Split-PDF-Document-to-Multiple-Files-with-C-VB.NET.html
Merge PDF Documents:https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Merge-PDF-Files-with-New-Method-in-C.html

If you have any further questions, please feel free to contact us. We'd be happy to help you.

Sincerely,
Ella
E-iceblue support team
User avatar

Ella.Zhang
 
Posts: 42
Joined: Fri Apr 07, 2023 7:42 am

Fri May 26, 2023 3:27 am

Hello,

Hope you are doing well!
Has your issue been solved? Looking forward to your feedback.

Please feel free to contact us if you have any problems.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF

cron