To combine several related documents into a single PDF file, you can use the operation "Concatenate related documents".
This operation will only concatenate related documents of PDF type.
This operation requires the following parameters to be configured:
- append_to_original: If you want the "original" document (from which the operation is executed) to be concatenated together with the rest of the related documents (also always in first place) then we must set it to "1", and in addition, we want the generated document to replace the original. By default, the value is "1".
- include_original: If you want the "original" document (from which the operation is executed) to be concatenated together with the rest of the related documents (also always in first place) then we must set it to "1". By default, the value is "1".
- doctypes: List of doctypes (separated by commas) that will be used to filter related documents. Only related documents of these doctypes will be concatenated.
- upload_serie: we set it to "1" so that a new document is created with the concatenation in the same series as the original (if it is not specified or set to 0, it is not created). If we set it to the "name" of a specific series, then it will be created in that series.
- random_suffix: If set to "1", it is used to add 4 random characters to the document title so that if it is executed several times, several documents will be created instead of overwriting the same one. If set to "0" or nothing, it does not use those 4 characters and they are overwritten (if it is not specified, it is as if nothing were set).
- new_doctype: Specifies the new doctype with which the document will be saved in case "upload_serie" is active (it is only used in the case of having upload_serie active)
- save_original: Saves the path to the original file in a feature so it can be recovered. By default it is '1'
- new_status: A possible new processing status for the document is specified. If nothing is set, by default it is "Pending". Care must be taken with this point if the operation is going to be set "post-validation".