How to add shapes to PS file is a question answered by Aspose.Page API solution. See how to use the functionality in Python...an output stream for the PostScript document 5 with open (data_dir...Create an output stream for PostScript document 5 with open (data_dir...