Import Image and export as Txt

New Here ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

Hi, 

I like to create a form where I can import an image and text by a user and export those inputs in txt file. 

For the image import i'm currently using the "event.target.buttonImportIcon()" in JS and for the export to a txt-file I use JS to write the user input into a variable which is saved in the text file. 

Is it possbile to process the imported image in any way? I thought of exporting it as a base64 text for example. Where and how is the image saved when using "buttonImportIcon()") I tried "var photo = (event.target.buttonImportIcon());" and exporting 'photo' but the output is just "0. 

Thanks for any help in advance! 

TOPICS
Acrobat SDK and JavaScript

Views

50

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
community guidelines
Adobe Community Professional ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

LATEST

There's no easy way of exporting the selected image from a button, if that's what you mean.

And there's absolutely no way of knowing what its location on the local computer was, if you use buttonImportIcon.

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
community guidelines