Adaptive Form - Output Service Embed File Attachments into Document of Record
Hello,
I would like to confirm if file attachments can be embedded into Document of records generated by the Output Service. The attachments should be embedded into the PDF file itself, and not show as separate pages.
The use case is as follows:
- The adaptive form is created with XML Schema and XDP template. The Output Service API will be used to generate the Document of Record PDF.
- In the adaptive form, there are file attachment buttons to upload word/pdf files. There can be many attachments.
- Upon uploading the files, there is a hidden field in the adaptive form containing the temporary path to the attachments.
- These paths are sent to the servlet to be combined with the DOR.
- Once the form filling is complete and files are uploaded, the user clicks the submit button. Data is sent to the servlet to generate the PDF. After the PDF generation, the attachments from the adaptive form should be embedded into the PDF as file attachments.
Is a use case like this possible with the Output Service and other libraries available in AEM?
Thank you