Replace text with the same font as the one in the pdf

Hi,
We have some pdfs that use some strange fonts. They are not the standard that we can have in windows.
From C# code we manage to replace certain texts but the font that applies in the substitution is not the one with the replaced text. The question is whether it is possible to do so.
Thank you very much

@RubenL

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

  • Your input PDF.
  • Please attach the output file that shows the undesired behavior.
  • Please attach the expected output 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.

CodeReplacementAspose.zip (95.3 KB)

Hi,
I have put the files you asked for in a ZIP.
I hope everything is.

The intention is to replace the text “%Nombre1” with “RubenLo”

Thank you very much

@RubenL

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-51690. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Perfect. Thank you so much