Hello Ujjwal,
Thanks for your patience.
Our development team has spent sometime to further investigate the reasons of this problem and following are our observations.
The first sample file which you have shared has size ~80 Kb. It has 12 pages and contents of each of these pages is about 2Kb; also this file contains 3 fonts in resources with sizes: 30Kb, 16Kb, and 3Kb (these are sizes of compressed objects).
Please note that all these objects must be included into concatenated file. If you concatenate a file with 80k size for 2000 times, you will get resultant file whose size would be 2000 * 80Kb = 160000 Kb = 160 MB.
Currently we are not entirely certain that the size can be significantly reduced. (If we treat this as the same file as in sample we can reduce size if we share some objects, for example fonts for all copies of file contents in resultant file; but this will not work for different files!)
Concerning to the second example of using 10 files, please note that the file created with Aspose.Words contains 4 fonts which are used by all document pages. However when converting the individual word file into PDF format and then concatenating these files, fonts are included for individual 10 documents as separate objects. This causes differences in sizes.
Nayyer Shahbaz
Support Developer, Aspose Sialkot Team
About Us Contact UsKeep in touch! We're on
Twitter and
Facebook