To merge only the first page of two PDF files, you can use the following command:
qpdf --empty --pages pdf1.pdf 1 pdf2.pdf 1 -- output.pdf