Font size on bold text is no longer has same effect as the older versions

Hi. We recently upgraded our Aspose version to 24.8.0 (currently in development) from pdf 20.2.0 and word 20.3.0. There seems to be some breaking changes. One of them is that the font size on bold text is no longer has same effect as the older versions, new version bold text looks bigger in terms of size, code: builder.Font.Size = Double.Parse(fontSize). Could you explain why that is and what to do?
Also, could you please tell me what is an equivalent statement to:
Table table = builder.StartTable();
builder.getRowFormat().setHeadingFormat(true);
in new version 24.8.0?

@johnAxe,

Your query/issue appears to be related to the Aspose.Words API, so I am transferring the thread (by splitting the post) to the respective forum where one of our Aspose.Words team members will evaluate and assist you soon.

@johnAxe

Could you please provide code example that will allow us to reproduce the problem? Also you output and expected output documents will be useful for analysis. We will check the issue and provide you more information.

Could you please explain why you need an alternative for this code? The code is perfectly valid for new version of Aspose.Words. There should not be any problems with it.

Because I get error saying that:
DocumentBuilder’ does not contain a definition for ‘getRowFormat’ and no accessible extension method ‘getRowFormat’ accepting a first argument of type ‘DocumentBuilder’ could be found (are you missing a using directive or an assembly reference?)

@johnAxe Please make sure the DocumentBuilder created in your code is from Aspose.Words. Please try fully specified class name com.aspose.words.DocumentBuilder.

It is from Aspose.Words : The code → Aspose.Words.DocumentBuilder builder

@johnAxe You are using .NET version of Aspose.Words but trying to use Java syntax. Please use the following code:

builder.RowFormat.HeadingFormat = true;

Oh didn’t realize it was Java and was eqaul to builder.RowFormat.HeadingFormat = true;…
I’m already using builder.RowFormat.HeadingFormat = true;
Thanks

1 Like