Formatting problem when converting to PDF (image in a table)

Hi, unfortunatley I have another issue when using aspose.word to convert old word documents to pdf. Im using VB.net 2003 and my code is as follows :

doc = New Document(OpenFileDialog1.FileName)
doc.Save(Microsoft.VisualBasic.Mid(OpenFileDialog1.FileName.ToString, 1, (Microsoft.VisualBasic.Len(OpenFileDialog1.FileName.ToString) - 4)) + ".PDF")

I have attached an example word document that contains a table with an image inside one of the boxes. When I convert it with acrobat pro 9 it converts perfectly but when I convert it with aspose the formatting is messed up.
is there something I need to do im my code ?
Thanks
Kevin

Hi Kevin,

Thanks for your request. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as this feature is supported. The problem occurs because Aspose.Words does not support floating images positioning during rendering. As a workaround, you can try refactoring your document to avoid using floating images.
Best regards,

Thanks, unfortunatley we have too many documents that are already created so its too much work to change the original word document.
Is this something that I can expect to see in the near future or is it something for a future enhancement ?
I need to decide if I need to abandon my development with Aspose and move to acrobat pro 9 or wait for the fixes.
Thanks
Kevin :o)

Hi Kevin,

Thanks for your request. Unfortunately, positioning of floating objects is an extremely complex issue, so I cannot promise you a fast fix. Hopefully, this issue will be resolved somewhere at the beginning of the next year, but I cannot provide you a more solid estimate at the moment.
Regarding a workaround, of course, it would be better to change your documents in MS Word. In this case, you will be able to control how document layout is changed after changing text wrapping of shapes. Also, if it is acceptable for you, you can try doing this programmatically, but in this case layout of your documents can be changed. Please see the following code:

Document doc = new Document("in.doc");
// Get all Shapes
NodeCollection shapesColl = doc.GetChildNodes(NodeType.Shape, true, false);
foreach (Shape shape in shapesColl)
{
    shape.WrapType = WrapType.Inline;
}

Best regards,

We are happy to tell you that a very cool and important feature (filed as 7180) is included in the new version of Aspose.Words. Text wrapping around images and shapes when rendering Microsoft Word documents to PDF, XPS and printing is now supported. You can download the latest version from here.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(92)