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 Python... append ( doc . create_gradient_stop...), 0 . 0673828 )) 8 stops . append ( doc . create_gradient_stop...