We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Font lost when updating text

Sometimes when setting the text the font is lost. For example:

if (textFragment.Text == "for RD and Innovation ")
textFragment.Text = "for rd and innovation ";

In this particular case the font changes from the assigned font to TimeNewRoman. I tried so save off the font and reassign it, however, the object appears to internally change and there is no way to save off a reference and reassign.

I am running version 9.3


Thank you for contacting support.

Would you please share SSCCE code along with source and generated files so that we may try to reproduce and investigate it in our environment. Before sharing requested data, please ensure using Aspose.PDF for .NET 19.3.

I was able to work around the issue by limiting the TextFragment.Text updates to once per scan per TextFragment. That is previously I was updating the text multiple times during a scan.


Thank you for your kind feedback.

We are glad to know that your problem has been resolved. Please keep using our API and in event of any further query, feel free to ask.