Adding gradient in PS file is a functionality supported by Aspose.Page API solution. See how to use the functionality in .NET...FillAndStrokeText() methods which accept System.Drawing.Brush as a parameter...FillAndStrokeText() methods which accepts System.Drawing.Pen as a parameter...