Is it possible to assign html formatted text to PDF form text field?

1 Answer 9 Views
PdfProcessing
Satish
Top achievements
Rank 1
Iron
Iron
Satish asked on 16 Sep 2025, 01:20 PM

I am looking at this example.  Is it possible to format the text using HTML tags?

For ex: can the textboxvalue = <b>text</b>?
void ProcessTextBox(TextBoxField textBoxField, string textboxValue)
    {
        textBoxField.Value = textboxValue;
    }

https://demos.telerik.com/blazor-ui/pdfprocessing/read-and-write-form-fields

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 17 Sep 2025, 08:01 AM

Hello, Satish,

Your question has already been answered in the support thread (ID 1698821) you have opened on the same topic. However, I am posting the answer here as well in order the community to benefit from it.
We kindly ask you to use just one thread for a specific problem to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread. Thank you for your understanding.

Currently, it is not possible to assign HTML-formatted text or any other rich text to a PDF TextBoxField using the PdfProcessing library. The TextBoxField.Value property only supports plain text. If you set the value to an HTML string, the tags will be shown as part of the text and will not be interpreted for formatting.

If you need to display formatted text in your PDF documents, consider аdding formatted content (such as bold or colored text) using document elements like paragraphs, outside of form fields, by using the FixedContentEditor or similar APIs.

We already have a similar feature request in our feedback portal. You can cast your vote for the item, track its progress, subscribe for status changes, and add your comments on the following link: PdfProcessing: Add support for rich text strings in text fields

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Satish
Top achievements
Rank 1
Iron
Iron
commented on 17 Sep 2025, 12:25 PM

Thanks Dess!

I tried to delete the other question in forums, but looks like there is no way to delete after posting.

Dess | Tech Support Engineer, Principal
Telerik team
commented on 19 Sep 2025, 10:41 AM

Hi, Satish,

The other thread is a private support ticket which is available only your Telerik account. You shouldn't be concerned about the duplicated threads as long as you avoid multiple threads in future.

Thank you for your understanding.

Tags
PdfProcessing
Asked by
Satish
Top achievements
Rank 1
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or