1. Home
  2. Foxit Quick PDF Library
  3. Set font color of new text

Set font color of new text

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.

Updated on April 10, 2017

Was this article helpful?

Related Articles

Ready to try Foxit PDF SDK?
Click the link below to download your trial
Free Trial

Leave a Comment