Hello!
I have an issue with the formatting of a document when converting it from Word to PDF.
When I try to convert the document using Aspose.Words versions 22.3 and 23.9, some of the text lines in the resulting PDF have incorrect formatting.
However, when I convert the same document using Aspose.Words 21.3 or utilize the native PDF export in Word, the PDF appears correctly formatted.
I would like to know how I can convert the document using the latest version of Aspose.Words so that the resulting PDF matches the formatting achieved when I used Aspose.Words 21.3. Could you please provide me with an explanation to achieve this?
Original file:
Source.docx (19.7 KB)
Resulting PDF:
Result.pdf (44.5 KB)
Code that I used to convert the document:
private static void WordToPdf(Stream inputStream, string targetPath)
{
var word = new Aspose.Words.Document(inputStream);
word.Save(targetPath, Aspose.Words.SaveFormat.Pdf);
}