Adding gradient in PS file is a functionality supported by Aspose.Page Api solution. See how to use the functionality in Java...Products Aspose.Total Product Family Aspose.Words Product Solution...Solution Aspose.PDF Product Solution Aspose.Cells Product Solution...