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

InDesign's scripting capabilities

New Here ,
Jul 29, 2024 Jul 29, 2024

Hi folks

I am currently researching about the scripting capabilities of InDesign. Actually I want to know whether I can run a script in InDesign to do a feature that is not supported by InDesign. For example I want to add character limit and format to a form field created in InDesign. But it is not possible in InDesign. Is there any way I can do it using scripts?

TOPICS
Scripting , UXP Scripting
1.3K
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 29, 2024 Jul 29, 2024

Generally scripting is used for automation of InDesign. Whether something can be done or not can be answered by looking at the InDesign DOM API and figuring out what is possible or not via scripting. For that start at the link given below

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Application.html

Now if you find that scripting is lacking for your task then the final tool you can explore is creating C++ plugin for InDesign. This can do almost anything within the app. The only need is that it should have been exposed by the Adobe team for the 3rd party developers.

-Manan

 

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
New Here ,
Jul 29, 2024 Jul 29, 2024

Thankyou for your reply

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
LEGEND ,
Jul 29, 2024 Jul 29, 2024

@Praveena38872767xscr

 

Your example refers to the functionality of the interactive PDF. 

 

Can be done by injecting JavaScript code into the exported PDF - but needs to be done in Acrobat - AFTER exporting PDF. 

 

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
New Here ,
Jul 29, 2024 Jul 29, 2024

Actually I wanted to do it within InDesign itself. Is there any way for that?

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
LEGEND ,
Jul 29, 2024 Jul 29, 2024
quote

Actually I wanted to do it within InDesign itself. Is there any way for that?


By @Praveena38872767xscr

 

No. 

 

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
New Here ,
Jul 29, 2024 Jul 29, 2024

Thankyou for your reply 

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
New Here ,
Jul 29, 2024 Jul 29, 2024

Is it possible to give formats and character limits for form field in acrobat using scripts by using the name of the text field as the base?

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 29, 2024 Jul 29, 2024

There's FormMagic plug-in that can do more than what's built into InDesign. I don't know if it can do exactly what you want:

https://www.id-extras.com/products/formmagic/

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
People's Champ ,
Jul 29, 2024 Jul 29, 2024

FormMagic can't, but FormMaker can (both char limits and field formatting). Free for short forms.

https://www.id-extras.com/products/formmaker/

(But in fact, ultimately even FormMaker is relying on Acrobat scripting to achieve these things. There's no way of doing it in InDesign that I know of.)

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
New Here ,
Jul 29, 2024 Jul 29, 2024

Thankyou for your reply

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
New Here ,
Jul 29, 2024 Jul 29, 2024

Thankyou for your reply 

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 29, 2024 Jul 29, 2024

Hi @Praveena38872767xscr , You might want to ask in the Acrobat forum. Here is the Acrobat API—there is a Field object with a charLimit property:

 

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#charlimit

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
New Here ,
Jul 29, 2024 Jul 29, 2024
LATEST

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