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

Image Field Value to Set in the Annotation Attachment

Community Beginner ,
Sep 04, 2020 Sep 04, 2020

Copy link to clipboard

Copied

Hello All,

 

Q1: I have question regarding Images, If I attached the Image in annonation, is there any we can put that image in the Image field so that user can see?

 

Q2: Is there anyway if user select the image in the Image field we can pass that value that image to annotaion to attach that image file, In short User does not need to browser the image again for the Annoantion. 

 

Thanks for your help in advance 

TOPICS
Acrobat SDK and JavaScript

Views

483

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 2 Correct answers

Community Expert , Sep 04, 2020 Sep 04, 2020

No to both. A script can't access the contents of the selected image in an annotation, only in a field or an Icon object.

Votes

Translate

Translate
Community Expert , Sep 08, 2020 Sep 08, 2020

Try this: app.browseForDoc({cFileFilter:2})

Votes

Translate

Translate
Community Expert ,
Sep 04, 2020 Sep 04, 2020

Copy link to clipboard

Copied

No to both. A script can't access the contents of the selected image in an annotation, only in a field or an Icon object.

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 Beginner ,
Sep 08, 2020 Sep 08, 2020

Copy link to clipboard

Copied

Thanks for your reply, If I have attcahed the image in the Image Field, Is there any we can set that Image in the file attcahment at a same time

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 ,
Sep 08, 2020 Sep 08, 2020

Copy link to clipboard

Copied

I don't believe that's possible, either.

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 Beginner ,
Sep 08, 2020 Sep 08, 2020

Copy link to clipboard

Copied

I'm using below Java Script, it's working, but not able to access JPEG.PNG images from Local machine. Is there anyway we can access Iamges from the below query

var doc = app.browseForDoc();
var one = this.getField(event.target.name);
var docPath = doc.cPath; // gets the file path of the selected file
one.buttonImportIcon(docPath); // uses the selected path to import the image as the "normal" or "up" button icon
this.importDataObject("myDataObjectFileName",docPath); // import the data object

 

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 ,
Sep 08, 2020 Sep 08, 2020

Copy link to clipboard

Copied

LATEST

Try this: app.browseForDoc({cFileFilter:2})

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