Hi,
We are using Aspose.pdf v19.2 library to merge PDF files. We found it will through out of memory exception when merging a 600MB PDF file with other pdf. Our machine is Win10 i3 with 3GB memory.
Here’s our code:
// Open first document
Document pdfDocument1 = new Document(“Concat1.pdf”);
// Open second document
Document pdfDocument2 = new Document(“Concat2.pdf”);
// Add pages of second document to the first
pdfDocument1.Pages.Add(pdfDocument2.Pages);
// Save concatenated output file
pdfDocument1.Save(“ConcatenatePdfFiles_out.pdf”);
Here’s our test file:
https://drive.google.com/file/d/14EyKJDK2PRPRoFPqCiPDwf8IsYRQdUD3/view?usp=sharing
FYI, we used Adobe Arcobat X Pro to merge the pdf file and it won’t throughout the memory exception.
Please have a look. Thanks.