Pdf automation

I have 5 pdf files and i want to take first page from all pdfs and merge into one pdf file. how to do that? please help me.

Is there a pattern in the name of pdfs from which you are trying to fetch data? Or are they all inside a single directory?