Copy link to clipboard
Copied
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
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
When you use an action in Acrobat you don't need open and close the document.
You need only add the checkboxes and save the document.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now