I'm looking into merging multiple attachments (.pdfs) into a single attachment.

The research I have done so far suggests that there is no native way to achieve this in Apex.

The only feasible way seems is to either leverage an App, such as CongaComposer or DocuSign (paid for) or, as per this link, to make a webservice to the Google App Engine.

Has anyone been successful in merging attachments together in Salesforce without the assistance of a paid-for App?


You would need to be able to manipulate the file with the equivalent of Adobe Acrobat Exchange or similar in order to merge 2 or more PDF documents into a single document. Apex simply doesn't have those capabilities. You're correct that you'd need to leverage either a 3rd party application or a some kind of provider accessed via web services.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.