Andy Tran

Merge your

files easily


Quickly and easily merge your multiple PDF files in one



Drag & Drop to Upload Files OR Choose Files



Maximum file upload size is 1MB
File format should be PDF only

Introduction

MergeEase is a simple and efficient API that lets you easily merge multiple PDF files from Salesforce into one PDF. With MergeEase, you can streamline your workflow and save time by quickly combining all your files into a single PDF.

MergeEase is built specifically for Salesforce users, making it easy to integrate PDF merging functionality into your Salesforce environment. Our API is highly adaptable and can be customized to meet your business requirements.

Using MergeEase is straightforward and user-friendly. Development teams can easily integrate this API into your workflow. By sending PDFs from various objects, the API can merge them into a single PDF and return it to the object quickly and efficiently according to your business case. You get to choose the order in which the merged PDF is generated.

MergeEase is secure and reliable, using advanced technology to ensure the protection of your data. It’s also scalable, making it perfect for businesses of any size.

Whether you need to merge contracts, invoices, or other documents, MergeEase makes it easy to combine multiple PDF files into one. Simplify your PDF merging process today by giving MergeEase a try.

Authentication

The PDF Generator API uses JSON Web Tokens (JWT) to authenticate all API requests. These tokens offer a method to establish secure server-to-server authentication by transferring a compact JSON object with a signed payload of your account’s API Key and Secret. When authenticating to the PDF Generator API, a JWT should be generated uniquely by a server-side application and included as a Bearer Token in the header of each request.

JSONWebTokenAuth

JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA. For more information about JSON Web Tokens check jwt.io

Security Scheme Type: HTTP
HTTP Authorization Scheme: bearer
Bearer format: JWT
 

Merge PDFs

Returns a list of templates available for the authenticated workspace:

QUERY PARAMETERS
 
Type
Fields
List<String>
files 
List<String> cvlds
String
orgid (required)
String username (required)
String
userId (required)
String orgtype (required)
String sessionId (required)
String
orgBaseURL (required)
String
mergedFileName (required)
String
sequence (required)

 

/api/merge-pdfs


   Request Samples (Payload)

{  
files: [ "<file 1 in Base64>", "<file 2 in Base64>" ],  
cvIds: ["0689D000001Z78qQAC", "0689D000001FG8qQAC"], 
orgid: "18_DIGIT_SALESFORCE_ORGID", 
username: "SALESFORCE_USER_NAME", 
userId: "SALESFORCE_USER_ID", 
orgtype: "PRODUCTION", 
sessionId: "dsdsoipfskjjdfshiud******", 
orgBaseURL: "SALESFORCE_ORG_BASEURL",  
mergedFileName: myfile,  
sequence: [file0, cvFile0, file1, cvFile1]
}

Responses

   Response Samples

{
  contentDocumentId : 0699D000001UthEQAS
}
//Message: Final merged file
200 - Success

Message :

  • Final merged file
400 - Bad Request

Message :

  • Bad request (User friendly message about wrong request body)
  • Request should atleast contain two PDF’s.
401 - Unauthorized

Message :

  • Unauthorized : Your org is not registered to use this service.
  • Unauthorized : Your are not a registered user to use this service.
403 - Forbidden

Message :

  • Forbidden: User is inactive.
413 - Payload Too Large

Message :

  • File size is too large
500 - Internal Server Error

Message :

  • Files merge failed. Please contact admin.

   Response Samples

{
  contentDocumentId : 0699D000001UthEQAS
}
200 - Success

Message :

  • Final merged file
400 - Bad Request

Message :

  • Bad request (User friendly message about wrong request body)
  • Request should atleast contain two PDF’s.
401 - Unauthorized

Message :

  • Unauthorized : Your org is not registered to use this service.
  • Unauthorized : Your are not a registered user to use this service.
403 - Forbidden

Message :

  • Forbidden: User is inactive.
413 - Payload Too Large

Message :

  • File size is too large
500 - Internal Server Error

Message :

  • Files merge failed. Please contact admin.

   Response Samples

{
  contentDocumentId : 0699D000001UthEQAS
}
{
  "message" : "Bad Request"
}
{
  "message" : "Unauthorized"
}
{
  "message" : "Payload Too Large"
}
{
  "message" : "Internal Server Error"
}
200 - Success

Message :

  • Final merged file
400 - Bad Request

Message :

  • Bad request (User friendly message about wrong request body)
  • Request should atleast contain two PDF’s.
401 - Unauthorized

Message :

  • Unauthorized : Your org is not registered to use this service.
  • Unauthorized : Your are not a registered user to use this service.
413 - Payload Too Large

Message :

  • File size is too large
500 - Internal Server Error

Message :

  • Files merge failed. Please contact admin.