Combine PDFs

Combine multiple PDFs into a single PDF.

This endpoint was originally called "combine submissions", but the API was extended
to allow many different types of source PDFs (submissions, other combined PDFs, original template PDFs, custom uploaded files, and URLs.)

HTTP Request

POST https://api.formapi.io/api/v1/combined_submissions

Authentication

You must send an Authorization header with the value Basic followed by base 64 encoded token_id:token_secret.

using System;
using System.Diagnostics;
using FormApi.Client.Api;
using FormApi.Client.Client;
using FormApi.Client.Model;
namespaceExample
{
publicclassFormAPIExample
{
publicvoidmain()
{
Configuration.Default.Username = "yRaaR9JmTPtGX7EN";
Configuration.Default.Password = "IB3TRkSdm4f2BdtU_D3YgxjdMB7l-r2fOgvxD1Yzwec";
var apiInstance = new PDFApi();
var combinedSubmissionData = new CombinePdfsData(
test: false,
sourcePdfs: new List<Object>(new Object[] {
new {
type = "submission",
id = "sub_000000000000000001",
},
new {
type = "custom_file",
id = "csi_000000000000000001",
},
})
);
var combinedSubmission = apiInstance.CombinePdfs(combinedSubmissionData);
Debug.WriteLine(combinedSubmission);
// The job will now be in the "pending" state until it is processed.// You may want to call GetCombinedSubmission once per second until// the state changes to "processed".// Alternatively, you can set up a webhook notification.
}
}
}

The following example waits for the merged PDF to be processed, then prints the download URL.