class ShowColorBoxes
{

    private ShowColorBoxes()
    {
    }
    
    public static void main(String[] args) throws IOException
    {<FILL_FUNCTION_BODY>}
}

        if (args.length != 1)
        {
            System.err.println("usage: " +ShowColorBoxes.class.getName() + " <output-file>");
            System.exit(1);
        }
        
        String filename = args[0];

        try (PDDocument doc = new PDDocument())
        {
            PDPage page = new PDPage();
            doc.addPage(page);

            // fill the entire background with cyan
            try (PDPageContentStream contents = new PDPageContentStream(doc, page))
            {
                // fill the entire background with cyan
                contents.setNonStrokingColor(Color.CYAN);
                contents.addRect(0, 0, page.getMediaBox().getWidth(), page.getMediaBox().getHeight());
                contents.fill();
                
                // draw a red box in the lower left hand corner
                contents.setNonStrokingColor(Color.RED);
                contents.addRect(10, 10, 100, 100);
                contents.fill();
                
                // draw a blue box with rect x=200, y=500, w=200, h=100
                // 105° rotation is around the bottom left corner
                contents.saveGraphicsState();
                contents.setNonStrokingColor(Color.BLUE);
                contents.transform(Matrix.getRotateInstance(Math.toRadians(105), 200, 500));
                contents.addRect(0, 0, 200, 100);
                contents.fill();
                contents.restoreGraphicsState();
            }
            doc.save(filename);
        }
    
<no_super_class>