How to add shapes to PS file is a question answered by Aspose.Page API solution. See how to use the functionality in Java...already created output stream and save options. Create a rectangle...the rectangle. Close the page. Save the document. If we need to...