Avatar

Correct answer by
Level 10

Scripting for attachments is not 'native' to Designer and XFA-based forms. To utilize Acrobat 'Doc' object properties you can do the following:

// form1.page1.btn::click - (JavaScript, client)


var myDoc = event.target;

myDoc.importDataObject("pdfAttachment");

See page 16 of http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS_DesignerJS.pdf.

Steve

View solution in original post