Define pdfcat function for PDF concatenation