You can use PDF.js or Use NODE JS or Heroku APplication to do this one with Salesforce it's difficult
Try this one too REST API Blob Update
You can use SObject Basic Information, SObject Rows, or SObject Collections REST resources to insert or update blob data in Salesforce standard objects. You can upload files of any type, and you must use a multipart message that conforms to the MIME multipart content-type standard. For more information, see the WC3 Standards. You can insert or update files on any standard object that contains a blob field. Using the SObject Basic Information or SObject Rows APIs, the maximum file size for uploads is 2 GB for ContentVersion objects and 500 MB for all other eligible standard objects. Using the SObject Collections API, the maximum total size of all files in a single request is 500 MB.
You can use PDF.js or Use NODE JS or Heroku APplication to do this one with Salesforce it's difficult
Try this one too REST API Blob Update
You can use SObject Basic Information, SObject Rows, or SObject Collections REST resources to insert or update blob data in Salesforce standard objects. You can upload files of any type, and you must use a multipart message that conforms to the MIME multipart content-type standard. For more information, see the WC3 Standards. You can insert or update files on any standard object that contains a blob field.
Using the SObject Basic Information or SObject Rows APIs, the maximum file size for uploads is 2 GB for ContentVersion objects and 500 MB for all other eligible standard objects. Using the SObject Collections API, the maximum total size of all files in a single request is 500 MB.
- https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm?search_text=blob
Also, Recently, I used a free online PDF Merge Software which helped me Merge two PDF files easily. More details are written here:- http:// https://www.softwarewiki.org/merge-pdf/ (http://https://www.softwarewiki.org/merge-pdf/)
Hope this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra