class SuperimposePage
{
    
    private SuperimposePage()
    {
    }

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

        if (args.length != 2)
        {
            System.err.println("usage: " + SuperimposePage.class.getName() +
                    " <source-pdf> <dest-pdf>");
            System.exit(1);
        }
        String sourcePath = args[0];
        String destPath = args[1];
        
        try (PDDocument sourceDoc = Loader.loadPDF(new File(sourcePath)))
        {
            int sourcePage = 1;

            // create a new PDF and add a blank page
            try (PDDocument doc = new PDDocument())
            {
                PDPage page = new PDPage();
                doc.addPage(page);

                // write some sample text to the new page
                try (PDPageContentStream contents = new PDPageContentStream(doc, page))
                {
                    contents.beginText();
                    contents.setFont(new PDType1Font(FontName.HELVETICA_BOLD), 12);
                    contents.newLineAtOffset(2, PDRectangle.LETTER.getHeight() - 12);
                    contents.showText("Sample text");
                    contents.endText();
                    
                    // Create a Form XObject from the source document using LayerUtility
                    LayerUtility layerUtility = new LayerUtility(doc);
                    PDFormXObject form = layerUtility.importPageAsForm(sourceDoc, sourcePage - 1);
                    
                    // draw the full form
                    contents.drawForm(form);
                    
                    // draw a scaled form
                    contents.saveGraphicsState();
                    Matrix matrix = Matrix.getScaleInstance(0.5f, 0.5f);
                    contents.transform(matrix);
                    contents.drawForm(form);
                    contents.restoreGraphicsState();
                    
                    // draw a scaled and rotated form
                    contents.saveGraphicsState();
                    matrix.rotate(1.8 * Math.PI); // radians
                    contents.transform(matrix);
                    contents.drawForm(form);
                    contents.restoreGraphicsState();
                }
                doc.save(destPath);
            }
        }
    
<no_super_class>