Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PDF Contact sheet with checkboxes

Engaged ,
Jul 31, 2016 Jul 31, 2016

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

TOPICS
Acrobat SDK and JavaScript , Windows
995
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 31, 2016 Jul 31, 2016

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.

Translate
Community Expert ,
Jul 31, 2016 Jul 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 31, 2016 Jul 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 31, 2016 Jul 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 31, 2016 Jul 31, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 31, 2016 Jul 31, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 31, 2016 Jul 31, 2016
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines