Skip to main content
Inspiring
July 31, 2016
Answered

PDF Contact sheet with checkboxes

  • July 31, 2016
  • 1 reply
  • 1084 views

Hi,

I created a contact sheet with Photoshop or Lightroom . I know the number of images, row&columns and their spacing.

How can I create a script which will add check-boxes under each image?

The pdf may contain several pages and one of the inputs i will enter to the script is the number of images, row x col + desired spacing of the images.

The purpose is to send it to client and have them select their preferred images, save the doc and send it back to me.

I have some experience with Photoshop scripting and hope it is not very much different.

Thank you

This topic has been closed for replies.
Correct answer try67

could you provide a simple script which does the following:

1. open a documet

2. add a from item, e.g. checkbox anywhere

3. close the doc

Thank you


As mentioned, the only part you need to script is adding the fields. That can be done using the addField method of the Document object.

1 reply

try67
Community Expert
Community Expert
July 31, 2016

This can be achieved using a script in Acrobat, but it's not a very simple task for someone without any experience in Acrobat JS at all.

Basically, I would create the check-boxes by hand and then gather their location details (the rect property) and then use a loop to add them to the rest of the pages. It's possible to calculate how many rows and columns to add based on the user's input, which can be gathered using the app.response method.

karpiyonAuthor
Inspiring
July 31, 2016

is Acrobat JS much different than Photoshop JS?

I have some experience with PS JS.

Do i use the Adobe ExtendScrtipt Toolkit too?

If yes than i can try it.

the basic flow should be:

input: doc name, # of rows, #of col ...

flow:

open the doc

foreach (row...

  foreach(col...

    define the proper checkbox origin

    place a checkbox

next

next

Where can i find the appropriate command for this?

try67
Community Expert
Community Expert
July 31, 2016

The basic syntax is the same, but the entire set of objects, methods and properties is quite different.

And no, you can't use the ExtendScript Toolkit for that.

Some good resources about Acrobat JS:

https://acrobatusers.com/tutorials/

Adobe - Acrobat Developer Center | Adobe Developer Connection

Windjack Solutions, Inc. - Free Stuff