function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pankaj kumar pandeyPankaj kumar pandey 

How the merge pdf files into a single file.

There is a requirement that instead of generating more pdf files for all customer, can we combine all the files into a single PDF files or a zip file using Apex code


Hi ...


Did you figure out the solution for this...even I have a same problem can we do that ???



I am also wondering how this can be done.  Salesforce Content has a feature where you can download multiple pdfs or documents as a single zipped archive.  But there does not appear to be any Apex classes that deal with archiving/compressing of files.  So I am assuming that this type of functionality has not yet been exposed in the Apex API.



beco fuanbeco fuan
Plese refer to this PDF merging ( guide. Here's code on it can help you with merging PDF file into one.

Hi Pankaj,

Have you resolved this issue, if yes please help me to do.

Thanks & Regards,


Natacha JosephNatacha Joseph
Hi, has anyone solve this problem ?
Thanks !
sophian smithssophian smiths
i have use this Merge PDF Tool This tool is nice completely free and works well for merging pdf files: visit at more:-
rishabh rathor 28rishabh rathor 28

Hi, once try File ZIPO appexchange application. It can help you in merging multiple PDF's or docs into single pdf
here's the link -