If you want to merge PDF files on SAP server, you will need a third party software installed on SAP Server.
Here is one solution with PDF ToolKit :
Check the installation guide : Merge PDF files in ABAP.pdf
Get PDF Toolkit : pdflabs.com
Get the ABAP Class : code.google.com/archive/p/sappdfmerge
About the author