Impose Images and PDFs

You can use this online sample to compose a PDF file from existing PDF pages and images.
Note that there is much more functionality in the Prep Tool Suite product, including splitting, merging, annotating, stamping, form filling...