
I have created a flow, to receive xml-files via a SubmitPoint in Switch. Metadata is attached to the files in the SubmitPoint. The xml-file is then passed on and initiates the injection of a template to InDesign, that creates a PDF using the data from the xml. That works fine, and if I let the InDesign-configurator create the PDF, the metadata from the SubmitPoint is still present in the resulting PDF.
However, for different reasons I need to create the PDF using a script run via the InDesign Configurator. This is partly because I need both the PDF and the InDesign-dokument filled out with the data from the xml, and because I need to name the files depending on information in the xml. The script exports both a PDF and the InDesign document, so this works fine as well. The only problem is, that the PDF and the InDesign-document created by the script no longer contains the metadata from the SubmitPoint.
Can anybody help me with a script that will include the metadata from the SubmitPoint into the resulting PDF and InDesign documents created by my script?