These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

importing image

kirti
Registered: Aug 6 2008
Posts: 6
Answered

how do i import image from any file on my computer, i need to create a button (i soppose), i tired a method using java (event.buttonImport........) but it works in Pro but not in reader, but i have where it works in reader but i am not able to find out how it work,can someone help me.

merci beacoup.

My Product Information:
Acrobat Pro 7.0.9, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Importing a button image is one of those things thats on the edge of Acrobat's security model. In some versions it works and in some it doesn't event though for a long time the Reference has stated that it will not work in Reader. Forget about using this JavaScript Function.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

kirti
Registered: Aug 6 2008
Posts: 6
may you suggest a method of how can i import image files, i am in the process of creating a fill up form in adobe professional which i may later open with adobe reader to fill out and import images,i am able to create the boxes to fill out wiht text but not the ones to put images.

mercu beaucoup.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The problem isn't importing a button image with Acrobat Pro, Reader is the problem.

If you want the user to import an image from thier hard drive so that it can be displayed in the PDF, then the answer is no you can't do it unless the user has Acrobat Pro.

However, if you want the form data submitted back to you with an image from the user's hard drive, this can be done. Look in the Acrobat JavaScript Reference for the "Field.browseForFieToSubmit()" function.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

tunetym
Registered: Jun 9 2009
Posts: 1
I am a brand new user of Acrobat Standard 9 on Windows Vista. I don't understand "code", but I am savvy enough to copy and paste what someone else has created if I have clear instruction.

I want to create a form that can be used to import a picture later from within Adobe Reader. Is there a way to do this? If not, is there a plug-in or another "designer" program that will work with Acrobat to do this?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There are two very different PDF forms technologies, AcroForms and LiveCycle (XFA) forms. AcroForms is the traditional PDF forms technology.

Images cannot be easily imported into an AcroForm displayed in Reader. There is a way to do this but it's not user friendly.

LiveCycle forms are created with LiveCycle Designer. If you have Acrobat Professional 7.0 or later then you also have LiveCycle Designer. It's a separate tool that installs with Acrobat Pro. In LiveCycle Designer there is a form component called an Image Field. This field loads an image when the user clicks on it. If the PDF has been "Rights Enabled for Save", then this field will work in Adobe Reader. Rights Enabling is done in Acrobat Pro from an option on the "Advanced" menu

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
Regarding of end-users, and since the form is right-enabled : user can use the "Attach file" comment tool to import an image (or any other file) in the form.
Then you need to export datas as FDF (with comments).

Not very user-friendly, but sometimes useful…
Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
thomp wrote:
Importing a button image is one of those things thats on the edge of Acrobat's security model.
BTW, I'd never understand why importing an image in an AcroForm field should be more dangerous than importing an image in a XFA form field, or using a comment tool…

I guess that it's more a marketing issue than a technical issue !

;-)
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Merlin wrote:
I'd never understand why importing an image in an AcroForm field should be more dangerous than importing an image in a XFA form field, or using a comment tool…
Me neither.

Merlin wrote:
I guess that it's more a marketing issue than a technical issue !
You got that right.

BTW: using the File attachment annotation is brilliant. It gets around restrictions on using embedded files. However, when using this method the image is not displayed. That may or may not make a difference. Depends on what you're after.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
thomp wrote:
That may or may not make a difference.
Sure, sometimes it does…
;-)
Bob Casey
Registered: Aug 5 2009
Posts: 22
I am pretty new to Javsascipt. Is there a javasipt that references READERS Attach File to Comment Feature ? Thanks
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The answer is yes and no. You'll have to explain more about what you want to do with it. Please post your question to a new forum thread.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

angelac@beavers...
Registered: Jun 22 2010
Posts: 1
I am designing an Action notice form for my company. The idea is to make a PDF file that users within my work can use, insert the information, and then send it out company wide.

I have designed the form in InDesign CS3, and then exported it to a PDF file. I then added form fields for the user to fill out and a submit button which auto fills an e-mail with everyone from the company.

I am ok with making text entry form fields. That is a simple matter.

What's not so simple is figuring out a way to allow the user to insert a photo of the equipment change into the PDF.

I am running Adobe Acrobat Professional 8.2.2. I am running it on a Mac. All of the searches I've done have told me that if I was running Acrobat in Windows, I'd have access to LiveCycle Designer which has pre-built form item libraries, including a Image Field. But I cannot find any similar option on the Mac version.

Has anyone had any experience doing something like this on a mac? If so, I could certainly use some tips on making this work.

acretsi

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You should post this to a new thread so it's visible as a new question to everyone.

You can import images into buttons on a regular PDF. But it doesn't work reliably for Reader users. You really need Acrobat Pro to make it work.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script