Line spacing and word spacing differences when upgrading Aspose

The current version of Aspose I have is 17.2.0. Using the 30 day temporary license for version 25.3.0, I notice slight differences in line spacing and word spacing that add up across documents with multiple pages. The rtf files appear to be the same in both versions.

The settings used are

Aspose.Words.Document asposeDocument = new Aspose.Words.Document(filePath);

Aspose.Words.Saving.PdfSaveOptions pdfSaveOptions = new 
Aspose.Words.Saving.PdfSaveOptions();
pdfSaveOptions.ImageCompression = Aspose.Words.Saving.PdfImageCompression.Jpeg;
pdfSaveOptions.JpegQuality = 75;
pdfSaveOptions.PreblendImages = true;
pdfSaveOptions.TextCompression = Aspose.Words.Saving.PdfTextCompression.Flate;
pdfSaveOptions.UseCoreFonts = true;

asposeDocument.Save(destinationPath, pdfSaveOptions);

Are there any settings that can manage this spacing to revert to the original look?
oldVersion17_2.pdf (96.8 KB)

newVersion25_3.pdf (103.8 KB)

Doc.zip (46.6 KB)

@westongoodell Could you please attach the source MS Word document here for testing? We will check conversion on our side and provide you more information.

1 Like

@alexey.noskov I uploaded the rtf in a zip file

@westongoodell Thank you for additional information. As I can see PDF produced by 25.3 version of Aspose.Words is closer to MS Word rendering result. So new version produces more correct result than the older version.
The development goal of the Aspose.Words Document Layout Engine is to make it as close to MS Word as possible, rather than maintaining the same rendering results as older versions of Aspose.Words. This means that differences in document layout may occur between older and newer versions due to continuous improvements in the layout engine.

You’re comparing versions 17.2 and 25.3 of Aspose.Words, which represent about 8 years of development. The output produced by the newer version is closer to the results in MS Word. It’s likely that the older version had a bug or a missing feature that, by coincidence, produced the rendering result you expected.

1 Like