Skip to content

Commit 88c7545

Browse files
committed
new KB - Assigning Character Style to Fields in RadWordsProcessing
1 parent b4c62af commit 88c7545

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

knowledge-base/assigning-character-style-to-fields.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,17 @@ ticketid: 1686361
1717

1818
## Description
1919

20-
I want to apply a custom character style to fields, such as page number and total pages, in RadWordsProcessing for Document Processing. I need the document to reflect the applied styles and be exported to PDF format.
20+
Learn how to apply a custom character style to fields, such as [page number]({%slug radwordsprocessing-concepts-page-field%}) and total pages, in [RadWordsProcessing]({%slug radwordsprocessing-overview%}). The document reflects the applied styles when exporting to PDF format.
2121

22-
This knowledge base article also answers the following questions:
23-
- How to set a character style for a field in RadWordsProcessing?
24-
- How to format fields like PAGE and NUMPAGES with custom styles?
25-
- How to export styled fields to PDF using RadWordsProcessing?
22+
![Character Style in FieldInfo](images/character-style-in-fieldinfo.png)
2623

2724
## Solution
2825

2926
To assign a custom character style to fields in RadWordsProcessing and export the document to PDF, follow the steps below:
3027

31-
1. Create and define the custom character styles.
28+
1. Create and define the [custom character styles]({%slug radwordsprocessing-concepts-styles%}).
3229
2. Add the styles to the document's `StyleRepository`.
33-
3. Specify the desired style for the `Run` objects in the field or the paragraph containing the field.
30+
3. Specify the desired style for the [Run]({%slug radwordsprocessing-model-run%}) objects in the [field]({%slug radwordsprocessing-concepts-fields%}) or the paragraph containing the field.
3431
4. Export the document to PDF format.
3532

3633
Here is a complete code example:
@@ -96,6 +93,5 @@ Process.Start(new ProcessStartInfo() { FileName = outputFilePath, UseShellExecut
9693

9794
## See Also
9895

99-
- [RadWordsProcessing Overview](https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/overview)
100-
- [RadWordsProcessing Fields Documentation](https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/features/fields)
101-
- [RadWordsProcessing PDF Export](https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/formats-and-conversion/pdf)
96+
- [Fields]({%slug radwordsprocessing-concepts-fields%})
97+
- [Styles]({%slug radwordsprocessing-concepts-styles%})
1.68 KB
Loading

0 commit comments

Comments
 (0)