We have an application that was using 9.7 of the Aspose.Words.dll, when converting docx files to pdf we had images convert over just fine. Upon upgrading to the latest version (22.214.171.124) some of the images are no longer being shown in the pdf. I have attached an example solution that converts the docx in question to pdf.
Actually if you notice there is a difference between the two pdf’s you provided, the one named output.pdf contains none of the images for each of the quote lines. But the MSWordOut.pdf contains one of the images but it is zoomed in and doesn’t look right. I downloaded 14.3 and see the same result.
Document doc = new
Document(MyDir + “Q1Quote.docx”);<o:p></o:p>
DocumentBuilder builder = new DocumentBuilder(doc);
foreach (DrawingML dml in doc.GetChildNodes(NodeType.DrawingML, true))
MemoryStream stream = new MemoryStream();
dml.GetShapeRenderer().Save(stream, new ImageSaveOptions(SaveFormat.Png));
doc.Save(MyDir + "Out.pdf");
I appreciate the code you provided but unfortunately our customer is not going to accept it as it makes the images look like junk compared to what they had before.
The point I was trying to make in my previous post is that Aspose docx to pdf conversion is not one to one with what Microsoft Word is doing as you can tell by the attached screenshot (the right side is the output from Microsoft Word). Both don’t do what we need them to do.
As a developer I can understand functionality changing and bugs being introduced from version to version of a product, but it is a little frustrating when something like this happens and you are told that it is not a bug. Since the functionality changed the only option I have right now, based on the responses I have been getting, is to start evaluating other libraries that can handle the conversion in the manner we need it to happen.
Thanks Tahir, I appreciate it.
Tahir, has there been any status updates to this case?
like to share with you that issues are addressed and resolved based on
first come first serve basis. Currently, your issue is pending for
analysis and is in the queue. We will update you via this forum thread
once there is any update available on your issue.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
Awesome! Works great. Thanks for the fix!