Is this script located in a Page Open action? If so, then it won't work, as
this is not a safe context.
You need to place it in a folder-level script, and pass the document
reference to it.
I've tried to do it with a folder-level script. But it didn't work.
So I've tried to find out, where the folder is to hold folder-level scripts. But the security settings prevent me to do this.
I'm sorry for my (probably) easy questions, but i can't find a way to solve it :-(
.... I've get to know that normal attachments can't be added to a pdf, when the client uses an adobe reader.
So I'm trying to do this: Add a file as a comment to the pdf.
But the adobe-reader-feature-extended pdf can't even attach files as comments. I'm confused about it, because the user is able to sign the document digital but not to attach files as comments?
Adobe Reader sends the messagebox: "no comments have been imported" - it seems like "an error occured" , but what else? errorcode? reason why? ...
Hello after trying out a lot of things, i've got a painful headache and no idea how to solve the problem.
Now i've placed a button on the pdf and an invisible textfield... i'm trying to add a hyperlink to the button, so that the hyperlink opens when the button is clicked?
so that's what i've done:
var txtfld = this.getField("URL");
var btn = this.getField("Button2");
And what happens?
instead of an errormessage nothing:
NotAllowedError: Security settings prevent access to this property or method.
Doc.getURL:1:Field Button2:Mouse Down
I've written this code in the page open event (adobe acrobat).
Please help me :-(
Problem #1: The script that you assign to the button has a different scope
than the script that you are running, so it has no knowledge of the txtfld
variable you defined. You need to move the line of code that defines it into
the MouseDown code.
Problem #2: The reference file states the following about getURL:
"NOTE:(Security S): Beginning with Acrobat 6.0, if bAppend is true, the
getURL method can only be executed during a console, menu or batch event."
Since you don't specify the bAppend value, it gets the default value of
"true", which means you can't call this method from a button action.
ok even if i add the code into the mouse-enter event or mouse-down event, nothing will happen right?
so how to solve the problem or this issue?
I can't manipulate the bAppend to false, right?
I mean there should be a workaround/hack to solve this issue.
The only thing i want to do is to add an attachment or hyperlinkbutton to the pdf , that depends on the fdf that delivers a path of an document?
i hope you can understand me?
The user, who uses adobe reader, should have access to the document or file, that is defined in the fdf.
The best way is to attach this file to the pdf (most comfortable for user) but another possibility is to open a hyperlink that refers the file or document...
Please tell me how to do it.I'm in despaired :-(