Use DPF for File Format Conversion¶
Introduction¶
To print files for which there are no built-in converters, PLOSSYS Output Engine can make use of Digital Process Factory (DPF) for the input conversion of these file formats.
The standard preconversion flow allows for converting Microsoft Office, PNG and JPEG.
Various custom conversions can be achieved by integrating DPF conversion into a custom flow:
if (job.properties.current.someSpecialKey === ('some special value')) {
await convert(job, { service: 'convert-dpf', convertParams: { dpfWorkflow: 'DPF4Convert.net_convert', dpfParameter: { someDpfKey: 'some value' } } });
}
For more information on how to implement custom flows, refer to Customize Job Processing on Windows or Customize Job Processing on Linux.
Configuration¶
To integrate Digital Process Factory into the PLOSSYS preconversion set the following environment variables as needed:
DPF_URL
: optional, link to the job REST API of the DPF server, default:https://localhost:9126/rest/dpf
DPF_API_VERSION
: optional, version of the job REST API provided by Digital Process Factory, default:v1
CALLBACK_HOST
: optional, hostname of PLOSSYS Output Engine reachable by Digital Process Factory to send callbacks to, default: local hostnameCALLBACK_PORT
: optional, port of PLOSSYS Output Engine reachable by Digital Process Factory to send callbacks to, default:2129