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

How to change the font of a specific variable?

Explorer ,
May 24, 2017 May 24, 2017

Rich text formatting is selected.

this is a javascript question.

This is a calculated field for a form field.

I just want 1 variable, no array needed. I would like my variable to be bold, centered, and larger font.

What I currently have... which do nothing...

var val = getField("Products").value;

val.alignment = "center";

val.fontStyle = font.TimesB

TOPICS
Acrobat SDK and JavaScript , Windows
4.1K
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

Explorer , May 25, 2017 May 25, 2017

No thank you. I'll try a different forum.

Translate
Explorer ,
May 25, 2017 May 25, 2017

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 25, 2017 May 25, 2017

An image?

Ok - I suppose I deserved that for not being more specific. Rephrasing... I'll need a copy of the PDF file so I can see exactly how you're constructing this thing.

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
Explorer ,
May 25, 2017 May 25, 2017

No thank you. I'll try a different forum.

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 ,
May 25, 2017 May 25, 2017

Nothing in the code you posted resembles the problem you describe (setting format). It does something I don't understand with descriptions instead.  I think I too need to bow out. Good luck with finding a forum where you are more in tune with the people there, we're obviously not communicating in a way that's useful to you or productive for us. In my (not comprehensive) experience, you will find that most programming forums put a much higher demand on clarity and communication than non-programming forums, and have less patience.

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
Explorer ,
May 25, 2017 May 25, 2017

There's enough description in all of my replies. I can't force anyone to read them

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 25, 2017 May 25, 2017
LATEST

No. I'm sorry but there just isn't enough information to give you a solution but only to point you in the right direction. Please consider that you might not know enough about Acrobat JavaScript to accurately determine if your responses are, in fact, helpful.

Unless I can get a copy of the file to examine it for myself, I'm out.

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