Skip to main content
Participant
April 10, 2020
Question

submitForm/mailDoc with PDF file and XML file in same email

  • April 10, 2020
  • 1 reply
  • 454 views

Is it possible to send the actual pdf form (like you would with mailDoc) and the XML file (like you would with submitForm) in the same email? Current code works for both independently. I would like to 1, archive the pdf form and 2, send the XML so I can easily dump the data somewhere for reporting. Was hoping to do this in 1 click and 1 email. Figured there had to be a way to do this.

 

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
April 10, 2020

From within Acrobat a script cannot send an email with two attachments. However, if the form is being send from Acrobat Pro, a script could embed the XML into the PDF as an attachment, then send the whole PDF in the email. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often