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
Sumeet Kore 1Sumeet Kore 1 

How to merge two pdf attachments on account record into one

Hi,
I wish to merge two pdf attachments into a single attachment of any object. Here I am trying to merge two attachments on single account object.
Any help would be appreciated.

 
NagendraNagendra (Salesforce Developers) 
Hi Sumeet,

May I suggest you please check with below link from stack exchange community with a similar issue and suggested workaround. Hope this helps.

Mark this as solved if it's resolved.

Thanks,
Nagendra
Sumeet Kore 1Sumeet Kore 1

Hi Nagendra,
That solution is partial correct. I get method does not exist or incorrect signature 

Blob combinedDataAsBlob = EncodingUtil.convertFromHex(combinedDataAsHex);

     System.debug('combinedDataAsBlob ::: ' + combinedDataAsBlob ); 
     Blob combinedDataAsBlob1 = blob.toPDF(combinedDataAsBlob); -- on this line