Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

PDF Attachment Annotation script in LiveCycle

pinechick
Level 3
Level 3

Help Please.
Can someone help to re-write this code below to work in LiveCycle?
It already works for Acrobat and users with Acrobat Reader XI can attach files to PDF with this script but it doesn't work when the form is created with LiveCycle. Please help.

var annot=this.addAnnot
({
page:0,
type:"FileAttachment",
attachIcon:"Paperclip",
point:[41,771]
})
annot.cAttachmentPath;

1 Reply
radzmar
Level 10
Level 10

Hi,

this won't work in dynamic forms at all.

The annot won't be saved with the file I'm afraid.


var annot=event.target.addAnnot ({


page:0,


type:"FileAttachment",


attachIcon:"Paperclip",


point:[41,771]


})


annot.cAttachmentPath;