dreamstime_s_10067824_Confidential

Back to Basics: Using Acrobat Stamps with the Datalogics PDF Java Toolkit

Sample of the Week:

As “Back To Basics” month comes to a close, we’re going to visit the Acrobat stamp functionality again. This time I’ll walk you through the process of using the Datalogics PDF Java Toolkit to stamp a PDF file using the built in Stamps that are installed with Adobe Acrobat and Reader.

The Comment panel in Adobe Acrobat, and recently, Reader, allow you to add a number of stamps to any PDF file. These stamps are designed to look similar to the old time rubber stamps that you’d apply to a paper document. Acrobat will allow you to create your own custom stamps and if you know a little JavaScript, you can even create dynamic stamps that can gather information from the user before being applied to the document. Continue reading

dreamstime_s_22051376

Back to Basics: Adding Button Fields using the Datalogics PDF Java Toolkit

Sample of the Week:

It’s still Back to Basics Month here at Sample of the Week. This week we’ll use the Datalogics PDF Java Toolkit to add a button field to a PDF page, assign the icons for the various button states, and then add some JavaScript to track the different events that get triggered when a user interacts with the button. This sample will also demonstrate how to copy PDF content from one document to another.

The AppearanceService in the Datalogics PDF Java Toolkit makes it very easy to create the default appearances for button fields that only use a text label for their appearance. What the AppearanceService can’t do for you automatically is create the icons that you might want to use as button appearances; even in the Acrobat interface, we need to pull those in from other PDF files or images.

Continue reading

dreamstime_s_54202461_Basics

Back to Basics: Replacing Pages using the Datalogics PDF Java Toolkit

Sample of the Week:

July is “Back to Basics” month here at the “Sample of the Week.” For the next few posts, I’ll be discussing some of the basic PDF manipulations that are easy to do in Adobe Acrobat but don’t have an exact corollary in the Datalogics PDF Java Toolkit. The first of these articles reproduces the Replace Pages feature in Adobe Acrobat.

In my other life, I create a lot of PDF forms and other types of interactive PDF files. Often times I need to change the content of the form but I don’t want to lose any of the fields that I’ve already added to the page. Fortunately, I can use Acrobat’s “Replace Pages” feature to slip new page content… the artwork… under the existing form fields, buttons, links. This is because form fields, comments, links, movies, 3D models… all of the dynamic elements of a PDF file actually sit on top of the PDF page content in a separate “plane” and are held in an “Annotation” dictionary for that page. Acrobat allows you to swap out the page content while leaving the Annotation dictionary unchanged.

Continue reading