Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vincent15000's avatar

Suggestions for a PDF merger API

Hello,

I need to add a PDF merger in a Laravel application. For the moment I use a free package, but it has limitations : some PDF formats are not recognized, some have several layers but only one layer is merged, some are encrypted, ...

My client needs to merge in average between 50 and 150 PDF files per month (some months 0, some months up to 150 to 200).

The better solution would be a self hosted solution or an API in Europe (for RGPD reasons).

For the moment I have found these solutions :

  • the setasign package which can be installed locally on the server for a reasonable price for a single license

  • api2pdf.com which seams to be very interesting, you pay only for what you consume, but it's not in Europe and I don't know if my client will accept this solution or not (because of the RGPD)

  • the pspdfkit.com API, but it's too expensive per month if my client merges over 100 PDF files per month

Some PDF files are encrypted, some others have several layers, ... so I need that the solution allows to merge encrypted PDF files and to flatten them if they have several layers.

Which solution are you using ? What could you suggest me ?

Thanks for your help.

Vincent

0 likes
10 replies
jlrdw's avatar

Doesn't Adobe have something?

1 like
vincent15000's avatar

@jlrdw Unfortunately there isn't any PHP SDK. Is there a possibility to use a node.js SDK with Laravel to use the Adobe PDF API ?

jlrdw's avatar
jlrdw
Best Answer
Level 75

@vincent15000 their general API doesn't have combining. I figured Adobe would have a way with php or laravel. But didn't hurt to look.

Only other suggestions:

  • check for github packages
  • don't combine, just zip them in one zip file.
1 like
vincent15000's avatar

@jlrdw I already checked for github packages, I tests several ones but no one can merge some specific encrypted PDF files.

Combining the files in a ZIP file was one suggestion I made to my client, but I think that he really needs to merge the files.

The Abode PDF API seems to have a combining API to merge several PDF files, I'm testing it right now without any SDK, the API documentation is clear, it shouldn't take too much time.

I will say you if it works fine or not ;).

vincent15000's avatar

@jagged_little_phil No problem with JS, but will this package also merge encrypted PDF files ? And what about PDF files with several layers ?

But I want to test this package ;).

Please or to participate in this conversation.