Category Archives: JavaScript

Learning to Program JavaScript for Adobe Acrobat

This is a bit longer than usual, so let me add a table of contents here that allows you to jump straight to the section you are interested in. JavaScript in Acrobat What is JavaScript Learning the JavaScript Core Language … Continue reading

Posted in Acrobat, JavaScript | Tagged , , , | Leave a comment

Getting a Serial Number Into a Form Using SOAP

One request that shows up again and again on the Adobe Forums (or in the past on AcrobatUsers.com) is about how to generate a unique serial number or form number in a PDF file. The scenario is usually something like … Continue reading

Posted in Acrobat, JavaScript, PDF, Programming, Tutorial | Tagged , , , , , , | Leave a comment

Batch-Import List Data into PDF Form

We’ve talked about batch importing data from an Excel document into a PDF form before: http://khkonsulting.com/2015/10/batch-import-excel-data-into-pdf-forms/ Back then, the idea was that we would have a spreadsheet with rows of data, and every row would be imported into a new … Continue reading

Posted in Acrobat, JavaScript, Tutorial | Tagged , , , , , , | 11 Comments

Batch-Import Excel Data into PDF Forms

A while ago I documented for AcrobatUsers.com how to manually import an Excel data record into a PDF form. You can find this information here: Can I import data from an Excel spreadsheet to a fillable PDF Form? This is … Continue reading

Posted in Acrobat, JavaScript, PDF, Tutorial | Tagged , , , , , , | 91 Comments

How to Open a Document Attached to a PDF File

Have you ever wanted to attach a document (e.g. a MS Word file) to a PDF document, and give the user the ability to launch that file with just a click on a button? Usually, you have to save the … Continue reading

Posted in Acrobat, JavaScript, PDF, Programming, Tutorial | Tagged , , , , , , | 11 Comments

Apply Standard PDF Form FIeld Formatting/Keystroke/Validation Events to Fields via JavaScript

For some options in Acrobat’s form editor, you can select multiple fields and then apply the same option to all selected fields. This works for example for the “read-only” flag, or the display options. It does however not work for … Continue reading

Posted in Acrobat, JavaScript, PDF, Tutorial | Tagged , , , , , , , | Leave a comment

How to Count Radio Button Choices in Acrobat JavaScript

A question that comes up every now and then on either AcrobatUsers.com or in the Acrobat JavaScript Forum is about how to count how many radio buttons with a certain value were selected by a user. Let’s for example say … Continue reading

Posted in Acrobat, JavaScript, PDF, Tutorial | Tagged , , , , | 6 Comments

Create Custom Commands in Adobe Acrobat DC Pro

Background In Acrobat XI and older, when you wanted to run e.g. a custom JavaScript, you had to create a folder level script and find the correct directory to install it, or create a custom Action using the Action Wizard, … Continue reading

Posted in Acrobat, JavaScript, Tutorial | Tagged , , , | 54 Comments

Document Level Scripts With Acrobat Standard

If you are using Adobe Acrobat Standard, you’ve probably noticed that you cannot add document level scripts to PDF documents. This is a limitation of the user interface, Acrobat Standard can actually add such scripts (and document actions), but it … Continue reading

Posted in Acrobat, JavaScript, PDF | Tagged , , | 9 Comments

Convert Radio Button Groups to Checkbox Groups in PDF Forms

If you’ve worked with PDF forms, you are probably familiar with radio buttons: There is one problem with radio buttons: When you have a selection that also includes “non of the above”, you have to create a separate option for … Continue reading

Posted in Acrobat, JavaScript, PDF, Tutorial | Tagged , , , , , | 23 Comments