Skip to main content
Participant
May 21, 2024
Question

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

  • May 21, 2024
  • 2 replies
  • 599 views

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.

 

Link Used for references;

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

 

Attaching screeshots for better ilustration.

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
May 21, 2024

> 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.

Participant
May 21, 2024

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

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

 

Thanks for your contributions!