You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/change-block-text-color-in-pdf-table.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,19 +17,19 @@ ticketid: 1674934
17
17
18
18
## Description
19
19
20
-
When working with PDF documents using [RadPdfProcessing]({%slug radpdfprocessing-overview%}), you may need to change the foreground color of text inside a table to differentiate between various pieces of information, such as an account number and its value. This knowledge base article also answers the following questions:
20
+
When working with PDF documents using [RadPdfProcessing]({%slug radpdfprocessing-overview%}), you may need to change the foreground color of the text inside a table to differentiate between various pieces of information, such as an account number and its value. This knowledge base article also answers the following questions:
21
21
- How to change the text color within a PDF table using RadPdfProcessing?
22
22
- How to differentiate text elements in a PDF document by color?
23
-
- How to apply foreground colors to text blocks within a PDF table?
23
+
- How to apply foreground colors to the text of Blocks within a PDF table?
24
24
25
25
## Solution
26
26
27
-
To change the text color inside a table in a PDF document using RadPdfProcessing, use the **FillColor** property of [GraphicProperties]({%slug radpdfprocessing-editing-text-and-graphic-properties%}). This property controls the color used for drawing the content elements of a `Block`. You can temporarily change the graphic properties for specific text elements by using the `SaveGraphicProperties()` and `RestoreGraphicProperties()` methods. This allows you to apply different colors to different parts of the text inside a table cell.
27
+
To change the text color inside a table in a PDF document using RadPdfProcessing, use the **FillColor** property of [GraphicProperties]({%slug radpdfprocessing-editing-text-and-graphic-properties%}). This property controls the color used for drawing the content elements of a `Block`. You can temporarily change the graphic properties for specific text elements by using the `SaveGraphicProperties()` and `RestoreGraphicProperties()` methods. This allows you to apply different colors, at different stages, to different parts of the text inside a table cell.
28
28
29
29
Here's how to achieve this:
30
30
31
-
1. Create a [table]({%slug radpdfprocessing-editing-table%}) and add a [row]({%slug radpdfprocessing-editing-tablerow%}) and a [cell]({%slug radpdfprocessing-editing-tablecell%}) to it.
32
-
2. Add a [block]({%slug radpdfprocessing-editing-block%}) to the cell for the text you want to display.
31
+
1. Create a [Table]({%slug radpdfprocessing-editing-table%}) and add a [Row]({%slug radpdfprocessing-editing-tablerow%}) and a [Cell]({%slug radpdfprocessing-editing-tablecell%}) to it.
32
+
2. Add a [Block]({%slug radpdfprocessing-editing-block%}) to the cell for the text you want to display.
33
33
3. Use `SaveGraphicProperties()` to save the current graphic state.
34
34
4. Set the [FillColor]({%slug radpdfprocessing-concepts-colors-and-color-spaces%}) property of [GraphicProperties]({%slug radpdfprocessing-editing-text-and-graphic-properties%}) to the desired color.
0 commit comments