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,
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”.
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)