Copy link to clipboard
Copied
Hallo,
Ich versuche mit Adobe Acrobat XI Pro ein Formular zu erstellen, bei dem Bilder per Button angehängt werden sollen.
Das funktioniert auch wunderbar mit der Pro-Version über einen Button der folgendes Java-Script ausführt:
this.importDataObject("attachment");
Der Button funktioniert so aber nicht im Reader, was vermutlich mit den Berechtigungen des Readers zusammenhängt.
Gibt es eine Möglichkeit das zu umgehen, sodass Reader-User auch Anhänge erzeugen können?
Alternativ können Reader-User ja Anhänge als Kommentare anhängen. Geht das irgendwie über einen Button mit Java-Skript?
Ich hoffe mir kann irgendjemand weiterhelfen, ich habe schon das gesamte Internet durchsucht...
Danke und Gruß
Jann
Sure, here's an example:
var annot = this.addAnnot({
page: 0,
type: "FileAttachment",
point: [400,500],
});
annot.cAttachmentPath;
Copy link to clipboard
Copied
Using relatively new version of Reader the user can attach files with the Attach File commenting tool.
It's also possible to use a script (triggered by a button field) to create such a comment and then prompt the user to select the file.
Copy link to clipboard
Copied
Yes, that is what I am looking for. Do you know how to write such a script? I can not find any script-examples...
Copy link to clipboard
Copied
Sure, here's an example:
var annot = this.addAnnot({
page: 0,
type: "FileAttachment",
point: [400,500],
});
annot.cAttachmentPath;
Copy link to clipboard
Copied
Perfect. Thank you very much.