Skip to main content
Known Participant
June 13, 2020
Answered

Insert multiple images in pdf form

  • June 13, 2020
  • 2 replies
  • 5395 views

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 has been closed for replies.
Correct answer try67

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.

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 14, 2020

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.

NKB0609Author
Known Participant
June 14, 2020

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! 

try67
Community Expert
Community Expert
June 14, 2020

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;
}
NKB0609Author
Known Participant
June 14, 2020

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.