We are generating a PDF document through the following process:-
1.) A static word Document is being converted into PDF.
2.)Then looping over all the pages of the generated PDF from above step, we are inserting a header having an image in all the pages.
The PDF generated after the first step is also attached for reference and has a size of 164 kb.
The PDF generated after adding Header images is also attached and has a size of 808kb.
Following are the issues:-
1.) A 34 kb word document when converted to PDF has the size increased to 164 kb.
2.)As the header image is being repeated for 8 pages the size of the final PDF should increase by (29.8*8=)238.4kb but the final PDF has a size of 808 kb.
As the word template used can have many more pages than the sample shared here the PDF size will increase exponentially.
Please provide a resolution to decrease the size of PDF.
The version of Aspose Words being used is 18.104.22.168
The version of Aspose PDF being used is 22.214.171.124