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

Avatar

Avatar
Validate 1
Level 1
pinechick
Level 1

Likes

0 likes

Total Posts

47 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
pinechick
Level 1

Likes

0 likes

Total Posts

47 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
pinechick
Level 1

24-06-2015

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;

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

395 likes

Total Posts

2,686 posts

Correct Reply

491 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

395 likes

Total Posts

2,686 posts

Correct Reply

491 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

24-06-2015

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;