• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Anhänge per Button im Reader

New Here ,
Aug 27, 2018 Aug 27, 2018

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

TOPICS
Acrobat SDK and JavaScript

Views

363

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 28, 2018 Aug 28, 2018

Sure, here's an example:

var annot = this.addAnnot({

    page: 0,

    type: "FileAttachment",

    point: [400,500],

});

annot.cAttachmentPath;

Votes

Translate

Translate
Community Expert ,
Aug 28, 2018 Aug 28, 2018

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 28, 2018 Aug 28, 2018

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 28, 2018 Aug 28, 2018

Copy link to clipboard

Copied

Sure, here's an example:

var annot = this.addAnnot({

    page: 0,

    type: "FileAttachment",

    point: [400,500],

});

annot.cAttachmentPath;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 28, 2018 Aug 28, 2018

Copy link to clipboard

Copied

LATEST

Perfect. Thank you very much.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines