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

Free Support Forum - aspose.com

Replace with data in hebrow(R2l)


I have a license for aspose version 7.1 for .NET

I have a PDF file with placeholders that I need to replace with real data.
image.png (12.8 KB)

The problem is that I have specific fields which need to be replaced with data in Hebrew and the Hebrew text needs to be written in rtl and aligned to the right and write direction rtl. (see the attached picture the result of my code )

image.png (1.9 KB)


appreciate your help on how to do it.

My code for replacing the placeholders:
TextFragmentAbsorber textFragmentAbsorber =

new TextFragmentAbsorber("!@@ AccountName@!");

        // Accept the absorber for all the pages


        // Get the extracted text fragments

        STextFragmentCollection textFragmentCollection = textFragmentAbsorber.TextFragments;

        // Loop through the fragments

        foreach (TextFragment textFragment in textFragmentCollection)


            textFragment.Text = value;

            textFragment.TextState.Underline = true;


and the pdf test.pdf (251.2 KB)


Can you please share the value that you want to replace with “AccountName” phrase and a screenshot of how you want it to be displayed on the PDF?

I want to replace “!@“AccountName”@!” with the following string:
I am attaching a PDF to the desired result
test (1).pdf (261.0 KB)

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

  Issue ID(s): PDFNET-53515

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.