Hi
When we convert Docx to Pdf, word wrapping changes. Native MS Word convertion works fine.
That behavior reproduces at Конвертировать DOCX В PDF Бесплатно - Docx В Pdf and in code with latest Aspose.Words.
Source doc.docx:
doc.DOCX (165.7 KB)
How it converts in Aspose:
aspose.pdf (85.6 KB)
How it converts in MS Word:
word.pdf (347.0 KB)
Sample code:
var loadOptions = new LoadOptions { };
using var file = File.OpenRead(filename);
var document = new Document(file, loadOptions);
var saveOptions = new PdfSaveOptions { };
var resultFilename = Path.ChangeExtension(filename, ".pdf");
document.Save(resultFilename, saveOptions);