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

How can the margin in text fields be set - Acrobat Pro DC - 2020

New Here ,
Apr 16, 2020 Apr 16, 2020

Copy link to clipboard

Copied

Simple question - How can the margins be set inside text form fields? (a JavaScript option is fine)  

 

In a multi-line text field, the top margin (padding) seem excessive and does not match the margin seen in single line fields.  The following graphics illustrates this issue:  

 

All lines displayed in the multi-line field, notice the extra margin/padding at the top of the field. The font used does not seem to matter.  This example uses Consolas (a fixed size font - like Courier)

image.png

Moving up the bottom of the field does not change the top margin.

image.png

 

Calibri displays the same issue (commonly used in Microsoft products)

image.png

 

After much searching there seemed to be at one time a 'Paragaph' tab in the form field properties dialog.  No more.

 

Any JavaScript solutions?

 

Thank you for your time.

Alex Lindberg

 

TOPICS
Acrobat SDK and JavaScript

Views

3.2K

Translate

Translate

Report

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 ,
Apr 16, 2020 Apr 16, 2020

Copy link to clipboard

Copied

It's still there, but not under Properties. You have to set the field as having Rich Text Formatting (that is done via Properties, under the Options tab), then click into it and press Ctrl+E. A floating toolbar will open. Select the text and click the More button in that toolbar and there you'll find the Paragraph tab with this setting. However, this setting doesn't "stick", so if you clear the text in the field and then enter something else into it that setting will no longer be applied.

Votes

Translate

Translate

Report

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 ,
Feb 22, 2023 Feb 22, 2023

Copy link to clipboard

Copied

This doesn't actually answer the question though.

You can edit the text properties as described above, but there is no way to actually remove the padding, even if the properties would stick once the text is changed. The screenshot here shows that even with all of the paragraph options set to '0' (which was what it defaulted to), the padding still exists and there is no way to change it. I wish Adobe would fix this - I found examples of this going back to 2016, and it's such a simple thing.

Votes

Translate

Translate

Report

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 ,
Feb 22, 2023 Feb 22, 2023

Copy link to clipboard

Copied

No it's not a simple thing. And it's not an Adobe Problem. This is a feature that can only be defined in the PDF Specification, and it doesn't, so it's up to the developers who make the PDF viewers to decide how to do it. Which means that if Adobe decided to change it, then they'd be out of sync with everyone else. But if the spec changes, then anyone who doesn't follow the spec is out of sync. 

I'd strongly suggest you create a proposal and submit it too the ISO 32000 steering committee. See how that goes. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

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 ,
Feb 26, 2023 Feb 26, 2023

Copy link to clipboard

Copied

LATEST

++ Adding to the topic,

 

In that case this is what I would do:

 

align.png

Votes

Translate

Translate

Report

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