Large PDF file with JPG images when using InsertImage

Hi,

We are using Aspose.Words 11.0. We are creating PDF and Word documents using a word template and mergefields. We use InsertImage to insert images to the document.
For some reason, even though the images size is not big, the output PDF is pretty large.
I’ve attached the template we’re using, the 3 images we’ve inserted (each image is 100K) and 2 output PDFs: one without the images (100K) and the other with the images (1.6M).
Can you please assist with this issue?
Thanks
David

Hi David,


Thanks for your inquiry, I tried inserting images via InsertImage method and converted the output to PDF on my side, but unfortunately, I was unable to reproduce this performance issue on my side. Could you please share the complete code here for testing? I will investigate the issue further and provide you more information.

Best Regards,

Hi,

We found the root cause of the problem in our code.

thanks

David

Hi
David,


Thanks for your feedback. It is perfect that you managed to resolve the problem on your side. If we can help you with anything else, please feel free to ask.

Best Regards,