Free Support Forum - aspose.com

WordML to PDF: Space between differently formatted words is lost

Dear Aspose Team.

I'm converting a wordML file to a PDF file. In the result file is the space between two differently formatted words lost. Do you have any idea?

Aspose.PDF is 4.1.1.0. I know it worked with 3.7.0.0.

See Code below. WordML is attached.

Thanks for helping.

[C#]<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Aspose.Words.Document wordDocument = new Document(wordMLStream, null, LoadFormat.WordML, null);

wordDocument.UpdateFields();

wordDocument.Save(tempDocStream, SaveFormat.AsposePdf);

Aspose.Pdf.Pdf pdfDocument = new Pdf();

pdfDocument.BindXML(tempDocStream, null);

pdfDocument.SetUnicode();

pdfDocument.Save(targetFilename);

[WordML]






Text1








Text2

Hello Tobias,

Thanks for considering Aspose.

I'm pleased to inform you that the reported issue is resolved in the attached latest hotfix for Aspose.Pdf for .NET 4.1.1. Please try using it and in case you still face any problem or you've any further query, please feel free to contact.

I've also attached the resultant PDF for your reference.

FYI, In recent versions of Aspose.Words, a new method of saving the Word documents directly into PDF format is introduced which does not require the involvement of Aspose.Pdf for this process. When I've tested the scenario using this new method, I'm also unable to notice the problem. I've tested with Aspose.Words 8.0.0.

For more related information, please visit How-to: Convert a Document to PDF

In case you still face any problem or you've any further query, please feel free to contact.