How to add vertical, horizontal or linear gradient to an XPS file is a question answered by Aspose.Page API solution. Learn the functionality for Java... createPathGeometry ( "M 30,20 l 258.24,0 0,56.64 -258...( doc . createPathGeometry ( "M 10,210 L 228,210 228,300 10,300"...