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

How to write a JavaScript code for changing the text format of a fillable text filed in a PDF Form?

New Here ,
May 21, 2024 May 21, 2024

Hello Adobe Team/Comunnity, we are in need to set a fillable text field with a long text on it, but we need to follow certain format; we look to increase the line height but the built-in options does not have this option. We try following the custom option via JavaScript guessing the code, but it looks like we are not able to fully locate the expected code syntax .

 

Really appreciated any help on this matter.

TinyTake21-05-2024-11-34-24.png

 

Link Used for references;

opensource.adobe.com/dc-acrobat-sdk-docs/library/jsdevguide/JS_Dev_AcrobatForms.html#using-javascrip...

 

Attaching screeshots for better ilustration.

TOPICS
Edit and convert PDFs , JavaScript , PDF forms
524
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 ,
May 21, 2024 May 21, 2024

FYI. This is the code I have being trying but does not works...

this.getField("bodyParagraph").style.lineHeight = "50"

TinyTake21-05-2024-11-39-38.png

 

Thanks for your contributions! 

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 ,
May 21, 2024 May 21, 2024
LATEST

> We try following the custom option via JavaScript guessing the code

Never a good idea... Sorry to inform you it's not possible to do 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