TextFragment - change size regression issue

There must be a regression here.
The values Rectangle/Width/Height are all still very much read only.
Aspose.PDF 22.9.0

@TraitDev

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input PDF file.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach the expected output PDF file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

There is no input pdf needed.
Adding
TextFragment textFragment = new TextFragment(“LOREM IPSUM DOLOR STI AMET”);
produces the following end results:
textFragment.Rectangle // this is read only.
textFragment.Rectangle.Width // this is read only
textFragment.Rectangle.Height // this is read only

textFragment.Rectangle = new Aspose.Pdf.Rectangle(0, 0, 10, 10, true);

CS0200

TextFragment.Rectangle cannot be assigned to - it is read only.

In your other topic which was unlinked you claimed this was fixed.
it is not in the latest 22.9.0

@TraitDev

You posted the query in very old thread. The TextFragment.Rectangle property is read only. This is not a regression issue. We improved some features in old version of Aspose.PDF i.e. 9.6 in text replacement and text fragments being adjusted after replace automatically.

Please use the latest version of Aspose.PDF for .NET 22.9 and let us know if you have any more queries.

Well then, something is incorrect again.
The text is being cropped out/cut when changing font.
IF the idea was that the text rectangle would adjust based on calculations on its own. I’m all for it.

Additionally, if there is some way to replace a single character Text-fragment and place the new character at the perfect center of the original, that would be great.

Currently, not only is it getting cropped, but it’s also aligned to the left and what appears to be baseline.
I attempted setting text fragment alignment options for it. they do nothing apparently.
Probably because it’s cropped.

@TraitDev

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Please share complete detail of your use case.
  • Your input PDF.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach the expected output PDF file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.