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

Free Support Forum - aspose.com

Adjust hyperlink position when the target text is shifted after replacing text

Hi, I’m about to replace any url, whether in a hyperlink or in a text, using the aspose.pdf for dotnet.
How to adjust the hyperlink position when the text is shifting after replacing some texts ?

Here is the pdf example of what I’m trying to do

This is the original
ShiftingText_original.pdf (89.3 KB)

And this is the modified
ShiftingText_modified.pdf (389.9 KB)

@xtralbar

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

  • 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.

Hi @tahir.manzoor
Thanks for replying,

here is the expected result and minimum reproducable source
expected result: ShiftingText_expected.pdf (38.3 KB)

source code: UrlReplacement.zip (7.1 KB)

@xtralbar

We have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as PDFNET-51125. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi @tahir.manzoor, Thank you so much, appreciate it.