Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Add a button for the person completing to add photos

New Here ,
Oct 16, 2025 Oct 16, 2025

I am trying to add a button to a fillable PDF so that the person who needs to complete and return the form can add a few pictures.

Is there a way to do this?

Eg.

kirsty_7890_0-1760666737976.png

 

TOPICS
Create PDFs , PDF forms
92
Translate
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
Community Expert ,
Oct 16, 2025 Oct 16, 2025

Are you trying to have them attach files, or embed the images into the PDF?

Translate
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
New Here ,
Oct 16, 2025 Oct 16, 2025

Just attach them. So when I receive the form back I can download and save them.

Translate
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
Community Expert ,
Oct 17, 2025 Oct 17, 2025
LATEST

If the end users have Acrobat you can use this script:

this.importDataObject("Attachment1")

If they only have Reader you will have to create an attachment annotation first.  The following script test the whether the viewer is Reader.  If true it creates the annotation and triggers the attachment function.  If not it reverts to the previous script:

var nm;
if(app.viewerType=="Reader")
{
var num=1;
if(this.getAnnots())
{

var anot=this.getAnnots();
for(var i=0;i<anot.length;i++)
{
if(anot[i].type=="FileAttachment")
{num++}
}
}


var annot = this.addAnnot({
page: 0,
type: "FileAttachment",
name: "Attachment."+num,
author: "Attachment "+num,
rect: [0,0,0,0],
attachIcon: "Paperclip" });
annot.cAttachmentPath;
annot.hidden=true;

}
else
{
if(!this.dataObjects){nm=1}
else{nm=this.dataObjects.length+1}

this.importDataObject("MyFile"+nm);

}

 

Translate
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