How to add shapes to PS file is a question answered by Aspose.Page API solution. See how to use the functionality in Python...Set a paint to the current graphics state of PsDocument. Fill...the stroke to the current graphics state of the PsDocument. Stroke...