Merging Multiple Documents to a PDF with PDF Protection
The API is an enhancement of the existing mergeDocsToPDF API. The mergeDocsToPDF2 merges multiple documents using the values specified in the docIds parameter into a single PDF document with the name docFileName and adds a flag to specify whether PDF document protection should be carried over to the collated PDF. The supported file types are DOC, DOCX, XLS, XLSX, PPT, PPTX, and PDF.
Before invoking this API, CustomClass.ActionParams must be instantiated by passing the parameters described below. The parameters are then passed to the API when it is invoked.
API | Signature |
---|---|
mergeDocsToPDF2 |
|
Request Parameters | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Type | Description | Required? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
parentId |
| The Id of the parent object to associate with the result (merged) document. | Yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
docIds |
| A collection of the Ids of the documents to merge into a PDF document. | Yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
docFileName |
| The file name for the PDF document. | Yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sessionId |
| The Salesforce session Id. | Yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sessionUrl |
| The Salesforce server Id. | Yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ProtectOutputDoc |
| If true, protect the output document with PDF security as defined in Comply properties. | Yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
addAutoHeaderFooter |
| If true:
If false, you need to define the following parameters.
| Yes |
Response Parameter | ||
---|---|---|
Name | Type | Description |
docId |
| The id of the generated PDF document. |
Code Sample
ProtectOutputDoc only enforces document protection in the target PDF when Enable PDF Security was properly configured at the time of PDF generated in the Org corresponding to the input document. For more information, see PDF Security for Agreement Documents.
All redlines that are present in input documents are accepted prior to collation.
Integration Details
Use the following information in your integrations with Apttus Contract Management Web Services API. For information on how to get started, refer to Integrating Conga CLM with External Systems.
API Prerequisites
None.
Request/Response XML
Example Request
Example Response