The SetTextColor function can be used to set the color of text drawn using the DrawText function.
// Set text color to red. QP.SetTextColor(255, 0, 0); QP.DrawText(50, 50, "Red colored text"); |
Foxit Quick PDF Library can only control the color of text that is being drawn using the DrawText function. It cannot change the color of text that already exists in the PDF file.