Copy link to clipboard
Copied
Hi
please, can someone help me to solve this problem?
I have a folder where I have a folder where there are several jpg files.
these files are named
ONE.jpg
TWO.jpg
THREE.jpg
etc.
In a PDF file I created a drop-down menu called "PHOTO" with the list of file names (ONE.jpg; TWO.jpg; THREE.jpg; etc.)
I would like to create a button that opens the jpg file selected from the drop down menu
The path to the card containing the jpg files is
C:\Users\Name Surname\Documents\AUXILIA\AGENCIES\PHOTOS
I tried with the app.openDoc function but it doesn't work (only works with PDF files)
app.openDoc("C:/Users/Name Surname/Documents/AUXILIA/AGENCIES/PHOTO/"+this.getField("PHOTO").value);
Is there a function to solve this problem?
Thank you
Copy link to clipboard
Copied
Try this:
app.openDoc({cPath: "/C/Users/Name Surname/Documents/AUXILIA/AGENCIES/PHOTO/"+this.getField("PHOTO").valueAsString, bUseConv: true});
Note this will only work in Acrobat, not in Reader. And of course the files will have to be located in that exact location for it to work...
Copy link to clipboard
Copied
Try this:
app.openDoc({cPath: "/C/Users/Name Surname/Documents/AUXILIA/AGENCIES/PHOTO/"+this.getField("PHOTO").valueAsString, bUseConv: true});
Note this will only work in Acrobat, not in Reader. And of course the files will have to be located in that exact location for it to work...
Copy link to clipboard
Copied
A thousand thanks
so you can't open it with the windows paint program, but only with Acrobat?
Copy link to clipboard
Copied
Not unless the file is attached to the PDF, no.
Copy link to clipboard
Copied
Okay
thank you very much