Hi,
Hi Ruchi,
- First search the particular text string which you need to replace.
- Get the current formatting information of TextFragment.
- Replace text string and use previously obtained formatting information for newly replaced string.
Hi Ruchi,
Hii,
Hi Ruchi,
Thanks for your feedback. In the first link, we are getting and printing the text formatting of TextFragment. You may store the properties in some variables and can apply these to the replaced text as stated in the second link.
float font = textFragment.TextState.FontSize;
textFragment.TextState.FontSize = font;
Please feel free to contact us for any further assistance.
Best Regards,
Font and FontSize properties are having getter and setter both , But FontStyle is having only setter.
ruchi.eck:
But FontStyle is having only setter.
This requirement is logged as PDFNEWNET-38011.ruchi.eck:
backgroundColor have only setter.
I have separately logged it as PDFNEWNET-38012 in our issue tracking system.ruchi.eck:
Underline is also having only setter.
As we just have logged these requirements, so currently we cannot confirm the timelines by which they will be implemented but as soon as we have made some definite progress towards their implementation, we will let you know.ruchi.eck:
Is this done purposefully or you may fix this issue in next version.
The issues you have found earlier (filed as PDFNET-38012) have been fixed in Aspose.PDF for .NET 18.10.
The issues you have found earlier (filed as PDFNET-38011) have been fixed in Aspose.PDF for .NET 19.5.
The issues you have found earlier (filed as PDFNET-38013) have been fixed in Aspose.PDF for .NET 21.3.