This connector creates a PDF from an Office or an Open Office document.
A Process Variable provides the document (See connector camunda-8-LoadFileFromDisk).
The process variable references the core document, which may be saved in a Folder, Temporary Folder, or CMIS. The result is saved in a process variable using the same File Storage library. If no "destinationStorageDefinition " is provided, and the PDF is saved in the same storage. New storage can be provided.
To get the result of the file on a file system, use the camunda-8-SaveFileToDisk connector.
Find the user documentation in our Camunda Platform 8 Docs.
mvn clean package
{
"sourceFileVariable": ".....",
"destinationFileName": "MyPdf.pdf",
"destinationStorageDefinition" : "JSON"
}
The sourceFileVariable file is accessible via a reference. Visit File Storage library. The file can be saved as a process variable in JSON, or in an external Folder, a CMIS repository, etc...
Connectors to load and save files are available in the repository Cherry Framework Component LoadFileFromDisk load a file from a disk, and SaveFileToDisk save the file on a disk.
The destinationStorageDefinition indicates where the PDF file is produced. According to the File Storage library, it can be on a disk, an external Folder, a CMIS repository, etc...
The response will contain the reference where the file is saved, according the storageDefinition
{
"result": {
"pdfFileVariable": "..."
}
}
The element templates can be found in the element-templates/office-to-PDF.json file.