Currently, the supported conversion method is limited to transforming PDF files into JPEG format.
This guide provides step-by-step instructions on how to convert an uploaded file (utilizing the provided example) from PDF to JPEG.
Access Permissions: Ensure that you have the necessary permissions to use the Documents Plugin. The user account used for these operations should have the required access rights.
Kafka Configuration: Verify that the Kafka messaging system is properly configured and accessible. The Documents Plugin relies on Kafka for communication between nodes.
You have two options to obtain the file ID:
Extract the file ID from a Response Message of an upload file request. For more details, refer to the upload process documentation.
Extract the file ID from a Response Message of a generate from template request. For more details, refer to the document generation reply documentation
In the following example, we will use the fileId
generated for Uploading a New Document scenario.
To create a process that converts a document from PDF to JPEG format, follow these steps:
To identify your defined topics in your current environment, follow the next steps:
KafkaTopicsHealthCheckIndicator
line and then details → configuration → topic → file → convert. Here will find the in and out topics for converting files.This is an example of a message that follows the custom integration data model.
fileId
: The file ID that will be convertedto
: The file extension to convert to (in this case, “JPEG”)The response will be sent to this ..out
Kafka topic.
The following values are expected in the reply body:
The converted file is now available in the storage solution and it can be downloaded:
Note that the actual values in the response will depend on the specific conversion request and the document being converted.
Currently, the supported conversion method is limited to transforming PDF files into JPEG format.
This guide provides step-by-step instructions on how to convert an uploaded file (utilizing the provided example) from PDF to JPEG.
Access Permissions: Ensure that you have the necessary permissions to use the Documents Plugin. The user account used for these operations should have the required access rights.
Kafka Configuration: Verify that the Kafka messaging system is properly configured and accessible. The Documents Plugin relies on Kafka for communication between nodes.
You have two options to obtain the file ID:
Extract the file ID from a Response Message of an upload file request. For more details, refer to the upload process documentation.
Extract the file ID from a Response Message of a generate from template request. For more details, refer to the document generation reply documentation
In the following example, we will use the fileId
generated for Uploading a New Document scenario.
To create a process that converts a document from PDF to JPEG format, follow these steps:
To identify your defined topics in your current environment, follow the next steps:
KafkaTopicsHealthCheckIndicator
line and then details → configuration → topic → file → convert. Here will find the in and out topics for converting files.This is an example of a message that follows the custom integration data model.
fileId
: The file ID that will be convertedto
: The file extension to convert to (in this case, “JPEG”)The response will be sent to this ..out
Kafka topic.
The following values are expected in the reply body:
The converted file is now available in the storage solution and it can be downloaded:
Note that the actual values in the response will depend on the specific conversion request and the document being converted.