Skip to main content
Known Participant
Jun 13, 2020 10:39 PM UTC
Answered

Insert multiple images in pdf form

Hi, my interative pdf contains multiple image fields where the client has to click on each each field to insert an image.  Is there a way that my client can insert as many as 100 images in one click? Or perhaps if they can insert a photo album directly from the PDF?

would highly appreciate your help with this. 

PS my clients will be using Acrobat reader. 

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Jun 14, 2020 8:53 AM UTC

No, that is not possible, unless you know the names of the files in advance and can install a script on the local computer of each client. What is possible, though, is to use a loop to prompt them to select the images one by one and import them directly into the field until they click Cancel. That would save them the step of having to click each image field, but they would still need to manually select all the images.

8 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Jun 14, 2020 8:53 AM UTC

No, that is not possible, unless you know the names of the files in advance and can install a script on the local computer of each client. What is possible, though, is to use a loop to prompt them to select the images one by one and import them directly into the field until they click Cancel. That would save them the step of having to click each image field, but they would still need to manually select all the images.

Translate
NKB0609Author
Known Participant
Jun 14, 2020 6:14 PM UTC

Thanks a lot for your suggestion...can you please guide on hiw this loop may be created? If you can share a script it would be great! 

Translate
try67
Community Expert
Community Expert
Jun 14, 2020 10:01 PM UTC

Let's say the fields are called Image1 to Image100. You can then use this code to import an image into field 1, then 2, etc., until reaching 100 or until the users clicks Cancel in the Select Image dialog:

 

for (var i=1; i<=100; i++) {
	if (this.getField("Image"+i).buttonImportIcon()!=0) break;
}
Translate
NKB0609Author
Known Participant
Jun 14, 2020 8:23 AM UTC

Hi, my interative pdf contains multiple image fields where the client has to click on each each field to insert an image.  Is there a way that my client can insert as many as 100 images in one click? Or perhaps if they can insert a photo album directly from the PDF?

would highly appreciate your help with this. 

PS my clients will be using Acrobat reader. 

Translate