Skip to content

Commit 4bf35e7

Browse files
committed
applied Yoan's feedback
1 parent 4317f63 commit 4bf35e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

knowledge-base/change-block-text-color-in-pdf-table.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ ticketid: 1674934
1717

1818
## Description
1919

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:
2121
- How to change the text color within a PDF table using RadPdfProcessing?
2222
- 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?
2424

2525
## Solution
2626

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.
2828

2929
Here's how to achieve this:
3030

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.
3333
3. Use `SaveGraphicProperties()` to save the current graphic state.
3434
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.
3535
5. Insert the text into the block.

0 commit comments

Comments
 (0)