Skip to content

Commit 21d0b70

Browse files
committed
Fix links with slugs and add gif
1 parent 1fe1059 commit 21d0b70

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed
15.7 KB
Loading

knowledge-base/radpdfprocessing-customize-textboxfield-colors.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Customizing Text and Border Color in TextBoxField in RadPdfProcessing
3-
description: Learn how to alter the text and border colors for a TextBoxField within a PDF document using RadPdfProcessing.
2+
title: Customizing Text and Border Colors to Highlight a TextBoxField with RadPdfProcessing
3+
description: Learn how to alter the text and border colors to highlight a TextBoxField within a PDF document using RadPdfProcessing.
44
type: how-to
5-
page_title: How to Change Text and Border Colors for TextBoxFields with RadPdfProcessing
5+
page_title: How to Change Text and Border Colors to Highlight a TextBoxField with RadPdfProcessing
66
slug: radpdfprocessing-customize-textboxfield-colors
7-
tags: radpdfprocessing, document processing, textboxfield, color customization, pdf
7+
tags: pdfprocessing, document, processing, textbox, field, color, border, customization, pdf, highlight
88
res_type: kb
99
ticketid: 1673638
1010
---
@@ -17,15 +17,17 @@ ticketid: 1673638
1717

1818
## Description
1919

20-
When working with PDF documents, you might need to update the text and border colors of a `TextBoxField` and highlight specific fields. This article demonstrates how to customize the appearance of `TextBoxField` elements, including changing their text and border colors.
20+
When working with PDF documents containing [form fields]({%slug radpdfprocessing-model-interactive-forms-form-fields%}), you might need to update the text and border colors of a [TextBoxField]({%slug radpdfprocessing-model-interactive-forms-form-fields-textboxfield%}) and highlight specific fields. This article demonstrates how to customize the appearance of `TextBoxField` elements, including changing their text and border colors.
21+
22+
![Highlight TextBox Field](images/highlight-textbox-field.gif)
2123

2224
## Solution
2325

24-
To change the text and border colors of a `TextBoxField` in a PDF document, utilize the `TextProperties` and `AppearanceCharacteristics` properties provided by the `VariableContentWidget` class. The following example demonstrates how to customize these aspects.
26+
To change the text and border colors of a `TextBoxField` in a PDF document, utilize the `TextProperties` and `AppearanceCharacteristics` properties provided by the [VariableContentWidget]({%slug radpdfprocessing-model-annotations-widgets%}) class. The following example demonstrates how to customize these aspects.
2527

26-
1. Create a new `RadFixedDocument` and add a page to it.
28+
1. Create a new [RadFixedDocument]({%slug radpdfprocessing-model-radfixeddocument%}) and add a page to it.
2729
2. Instantiate a `TextBoxField` and configure its properties as needed.
28-
3. Add a widget to the `TextBoxField` and set up the text and border colors using the `TextProperties` and `AppearanceCharacteristics` properties.
30+
3. Add a widget to the `TextBoxField` and set up the text and border colors using the `TextProperties` and [AppearanceCharacteristics]({%slug radpdfprocessing-model-interactive-forms-dynamic-appearance-properties%}) properties.
2931
4. Recalculate the content of the widget and add the `TextBoxField` to the document.
3032
5. Save the document to a file.
3133

@@ -64,10 +66,12 @@ File.WriteAllBytes(fileName, new PdfFormatProvider().Export(fixedDocument, TimeS
6466
Console.WriteLine("Document with customized TextBoxField created.");
6567
```
6668

69+
The demonstrated approach is applicable not only for creating new documents, but for importing documents that already contains form fields as well.
70+
6771
## See Also
6872

69-
- [TextBoxField Documentation](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/model/interactive-forms/form-fields/textboxfield)
70-
- [TextProperties Documentation](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/model/interactive-forms/dynamic-appearance-properties)
73+
- [TextBoxField Documentation]({%slug radpdfprocessing-model-interactive-forms-form-fields-textboxfield%})
74+
- [Text and Graphic Properties]({%slug radpdfprocessing-editing-text-and-graphic-properties%})
7175
- [Create Interactive Forms SDK Example](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/CreateInteractiveForms)
7276
- [Modify Form Values SDK Example](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/ModifyForms)
7377

libraries/radpdfprocessing/model/interactive-forms/form-fields/textboxfield.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,4 @@ TextBoxField exposes the following properties:
9090
* [CombTextBoxField Class]({%slug radpdfprocessing-model-interactive-forms-form-fields-combtextboxfield%})
9191
* [Create Interactive Forms SDK example](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/CreateInteractiveForms)
9292
* [Modifying Forms SDK example](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/ModifyForms)
93+
* [Customizing Text and Border Colors to Highlight a TextBoxField with RadPdfProcessing]({%slug radpdfprocessing-customize-textboxfield-colors%})

0 commit comments

Comments
 (0)