Skip to main content
Participant
Aug 28, 2018 6:55 AM UTC
Answered

Anhänge per Button im Reader

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Aug 28, 2018 3:01 PM UTC

Sure, here's an example:

var annot = this.addAnnot({

    page: 0,

    type: "FileAttachment",

    point: [400,500],

});

annot.cAttachmentPath;

4 replies

try67
Community Expert
Community Expert
Aug 28, 2018 2:22 PM UTC

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.

Translate
Participant
Aug 28, 2018 2:47 PM UTC

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

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Aug 28, 2018 3:01 PM UTC

Sure, here's an example:

var annot = this.addAnnot({

    page: 0,

    type: "FileAttachment",

    point: [400,500],

});

annot.cAttachmentPath;

Translate