Converting word to PDf formatting not correct

Hi,

I try to convert my word document to PDF. The result is not really what it should be.
I have attached the word document and the pdf files, one generated with Aspose, the other by Save As in word.

this is the code I use:

Aspose.Words.Document doc = new Aspose.Words.Document(fileName);
PdfSaveOptions pdfOptions = new PdfSaveOptions();
pdfOptions.PreserveFormFields = true;
pdfOptions.EmbedFullFonts = true;
pdfOptions.PrettyFormat = true;
doc.ExpandTableStylesToDirectFormatting();
doc.UpdateTableLayout();
doc.UpdatePageLayout();
doc.AcceptAllRevisions();
doc.Save(fileName + “.pdf”, pdfOptions);

any idea what I can do to solve the formatting issue?


Dear Stefaan,


Thank you for your inquiry.

I reviewed your input document and observed that you use floating objects in your document header and footer. Since Aspose.Words does not fully support floating content upon rendering your objects have incorrect position in output document. It is known issue and our development team works to eliminate it. To keep you updated about that issue resolving I linked your request to related record in our tracking system.

Meantime I would suggest you as workaround to use inline wrapping style for object.

DLana:
Dear Stefaan,

Meantime I would suggest you as workaround to use inline wrapping style for object.



thank you for your quick response.

Could you clarify what you mean by "use inline wrapping style for object."?

thanks

Okay. Look for the “Format object” option then look for the tab “Layout”. Here you can find a lot of wrapping styles. One of them is called “in line with text”.

For shape just choose “Text Wrapping” option and then “in line with text”.

ok, thanks, this solves the problem for floating objects indeed

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.
(139)