Just wanted to let you all know about an Aspose.PDF for .NET issue we encountered.
Reproduction steps:
- Load a 1,000 page PDF.
- Split it into 1,000 one page PDFs. Save these files on your disk or in blob storage.
- Load the 1,000 one page PDFs and merge them into one 1,000 page PDF.
- (Optional) Call
document.Optimize()
. (This reduces the file size by a trivial amount.) - Save the resulting 1,000 page PDF.
The file size of the final PDF will be WAY bigger than the original PDF even though they contain the same content.
To give you a rough idea of the size increase, I performed these steps on the first 2,000 pages of a 10,000 page PDF. The original PDF (10,000 pages) was 37 MB. The merged PDF (2,000 pages) was 1,250 MB. That’s a 33x increase and I’m not even taking into account that the merged PDF contains only 20% of the pages.
Let me know if a minimal reproduction would be helpful to you.
BTW, putting one of the giant merged PDFs through the iLovePDF optimizer reduces the file size by a huge amount.