We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Word to PDF: Image size error -> image gets enlarged

Hallo,


when I convert a word document that contains images, e.g. in a table cell, sometime an image gets enlarged to much, that only a fraction of the original images is visible. In the example I attached one of three images in a table gets blown up so much, that you do not see the face of the person anymore, but only a fraction of the shoulder.

I attatched a zip with the original Word, the resulting PDF and the code file.

.Net 3.5, Words-Dll 17.4.0.0

Hi there,


Thanks for your inquiry. We have tested the scenario with your shared document using Aspose.Words for .NET 17.4.0 and we are unable to notice any issue. It seems your shared PDF document is generated using Aspose.Pdf for .NET 11.2.

Document doc = new
Document(“WordTest2_docx.docx”);<o:p></o:p>

Aspose.Words.Saving.PdfSaveOptions pdfSaveOptions = new Aspose.Words.Saving.PdfSaveOptions();

pdfSaveOptions.EmbedFullFonts = true;

//Save document to returning stream

doc.Save("WordTest2_docx_174.pdf", pdfSaveOptions);


Best Regards,

Thanks for the fast reply!
Your are right - although I recompiled the console application several times, it seems it somehow still used the old DLL. After recompiling again, it worked…