hellow!
I need to attach a document in my form, but I don´t have any idea, somebody could give an idea only, please!
Thank´s
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Adding attachments to a PDF is possible under two scenarios:
1) The originating user adds the attachment using Acrobat (not Adobe Reader). Subsequent consumers of the PDF can access the attachment with Acrobat or Reader.
2) If users do not have Acrobat and you are planning on supporting attachments for Reader clients, you must use LiveCycle Reader Extensions ES2 to add a right to a PDF to enable attachments. Any user with Adobe Reader can then add attachments.
Steve
Views
Replies
Total Likes
Ok Steve, but what code do I have to put into my botton (attach)? do you have some example please?
Thank´s
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Ok Steve
And do you know, how could I get the document path?
I´m trying with...
myDoc = event.target;
myDoc.importDataObject("pdfAttachment");
xfa.form.form1.Page1.Contenedor.Documentos.rawValue
= myDoc.path;
I need the path of my attach document pdf, and "myDoc.path" show me the file´s path wrong.
Thank´s
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies