Tips & Tricks

Import Images into Field with JavaScript

September 16, 2002

Advertisement
Advertisement
 

Acrobat 5.0 enables you to copy and paste data between PDF files. However, there may be times when you wish to enable interactive elements such as importing images in a PDF file. A good example might be an insurance claims form where photographic images can assist claims adjustment appraisals.

You can set up a button to import an image in a form field with a simple JavaScript routine. To do so, create a form field and select Button for the field type. In the Add an Action dialog box select JavaScript from the Type pull down menu.

In the JavaScript Edit dialog box enter the following line of code:

event.target.buttonImportIcon(); 

When the user clicks on the button a dialog box will appear enabling navigation to find an image to import.You can secure the form and prevent users from changing fields, yet still enable them to import images.

Bonus...

Images can be imported from the files saved in all formats compatible with the Open As Adobe PDF menu command.

Then using a Digital Camera, you can import directly from the camera or a flash card with a compatible TWIAN driver.

Related Products at PDF Store

PDFlib TET

Reliably extract text from any PDF file with this library/component. TET makes available the text co... View full product details
Download free demo

Nitro PDF Professional

Nitro PDF Professional, your PDF creation and editing product. Priced at $99, Nitro PDF Pro is the m... View full product details
Download free demo

ARTS PDF Aerialist

Take Acrobat to the next level with advanced splitting and merging; flexible bookmark creation and m... View full product details
Download free demo

PDF In-Depth Free Product Trials Ubiquitous PDF

Nitro PDF Professional

the perfect PDF product for business and enterprise, combining an extremely competitive price with a...

Download free demo

XpdfViewer

This ActiveX control (OCX) provides a PDF file viewer component, enabling developers to add PDF viewing...

Download free demo

Ubiquitous PDF: PDF eBooks-Library

If you are looking for a good store of PDF content, you could do a lot worse than visiting eBooks-Library.com...

September 03, 2009
Search Planet PDF
more searching options...







Create PDF Free

Most Popluar Articles
Planet PDF Newsletter
Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.

Featured Product

Docmetrics

Generate more, higher-quality sales leads from your PDF marketing content. Docmetrics is a web-based system that lets you capture previously unavailable reader data. Free trial.

Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

QuickPDF: The Unrivaled PDF Developer Toolkit