Highlighted

Image Field Value to Set in the Annotation Attachment

Community Beginner ,
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 

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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

TOPICS
Acrobat SDK and JavaScript, Cancel subscription, How to, PDF forms, Print and prepress, Rich media and 3D

Views

54

Likes

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

Image Field Value to Set in the Annotation Attachment

Community Beginner ,
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 

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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

TOPICS
Acrobat SDK and JavaScript, Cancel subscription, How to, PDF forms, Print and prepress, Rich media and 3D

Views

55

Likes

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
Sep 04, 2020 0
Most Valuable Participant ,
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.

Likes

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
Reply
Loading...
Sep 04, 2020 0
Community Beginner ,
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

Likes

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
Reply
Loading...
Sep 08, 2020 0
Most Valuable Participant ,
Sep 08, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Sep 08, 2020 0
Community Beginner ,
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

 

Likes

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
Reply
Loading...
Sep 08, 2020 0
Most Valuable Participant ,
Sep 08, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Sep 08, 2020 0