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

Free Support Forum - aspose.com

.Net TextFragmentAbsorber - does not readjust spacing after text replace

Hi all,

In .Net, using Aspose.Pdf, after using TextFragmentAbsorber to replace text in a PDF file, the paragraph’s spacing was not adjusted.

I’ve been reading the forums and from what I understand, in .Net readjustment should work.

I’ve been using the example project “ReplaceTextPage” I’ve downloaded from your website.

I’ve also tried setting the following property, but it does not affect anything.

textFragmentAbsorber.TextReplaceOptions.ReplaceAdjustmentAction = Aspose.Pdf.Text.TextOptions.TextReplaceOptions.ReplaceAdjustment.AdjustSpaceWidth;

Is there anything I should be doing to readjust spacing after text replace?


Same on my side, unfortunately I opened new ticket for same issues :frowning:

Hi Lee,

Thanks for contacting support.

The issue might be occurring due to structure and complexity of input PDF file. So we request you to please share the resource PDF file and code snippet you are using or at least the string you are trying to replace, so that we can test the scenario in our environment. We are sorry for this inconvenience.