Skip to main content
Participant
August 28, 2018
Answered

Anhänge per Button im Reader

  • August 28, 2018
  • 1 reply
  • 615 views

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

This topic has been closed for replies.
Correct answer try67

Sure, here's an example:

var annot = this.addAnnot({

    page: 0,

    type: "FileAttachment",

    point: [400,500],

});

annot.cAttachmentPath;

1 reply

try67
Community Expert
Community Expert
August 28, 2018

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.

Participant
August 28, 2018

Yes, that is what I am looking for. Do you know how to write such a script? I can not find any script-examples...

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
August 28, 2018

Sure, here's an example:

var annot = this.addAnnot({

    page: 0,

    type: "FileAttachment",

    point: [400,500],

});

annot.cAttachmentPath;