I’m with some problems with Aspose.Words.
I’m trying to insert an image in my file but my image get streched.
Following the link of this post (http://www.aspose.com/community/forums/145124/image-property-problem/showthread.aspx#145124), I downloaded Aspose.Words .net 9.8.0 dlls from (http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/entry297254.aspx) but my problem still the same.
Can anybody help me?
Attached are the PDF file and the original image.
an part of my code:
Document doc = new Document();
builder = new DocumentBuilder(doc);
builder.PageSetup.LeftMargin = 30;
builder.PageSetup.RightMargin = 30;
builder.PageSetup.TopMargin = 30;
builder.PageSetup.BottomMargin = 30;
builder.Writeln();
builder.InsertImage(@“c:\teste.jpg”);
Hi,
Hi!
I downloaded Aspose.Words from http://www.aspose.com/community/files/364924/download.aspx now, but the issue stills the same.
See the attached file.
Hi,
Thank you for your inquiry.
Please note that Aspose.Words does nothing with JPEG images upon converting documents to PDF. So, image quality must be the same as in input file. I suppose, you see the difference because PDF reader and MS Word (or other viewers) use different codecs to display the image. To make sure, you can first save your document to DOC/DOCX format and then convert your MS Word document to PDF using MS Word and you will then see that the images looks the same in PDFs produced by Aspose.Words and MS Word.
If we can help you with anything else, please feel free to ask.
Best regards,