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

How to set dropdown border line style solid via javascript

New Here ,
Nov 09, 2017 Nov 09, 2017

Hi there,

I have a large pdf file with lots of filled forms in it. I need all the dropdown fields to have the border line style as solid via javascript, so that i can print only the value of the field and not the outline around it.

I now how to do it manually, by going to Properties- Appearance - Border Line Style Solid - no color, but i need to do it automatically because the pdf file has more than 600 dropdowns in it.
I am sharing this image in order to understand what i want to achieve by code. The arrows shows the fields that I want to hide the outline by code.

Screenshot - 10_11_2017 , 05_36_09.png

I need to print the pdf, so that the printed documents do not show the outline of the two dropdowns.

Is this possible to do it?

The needed settings i need to achieve by code are the ones shown below:

Screenshot - 10_11_2017 , 05_43_54.png

Any help will be greatly appreciated.

TOPICS
Edit and convert PDFs
1.7K
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
1 ACCEPTED SOLUTION
Community Expert ,
Nov 10, 2017 Nov 10, 2017
LATEST

The border style is not important, actually. What you need to set are the "line thickness" and "border color" properties, which you can do like this:

var f = this.getField("Dropdown1");

f.lineWidth = 0;

f.strokeColor = color.transparent;

View solution in original post

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 ,
Nov 10, 2017 Nov 10, 2017
LATEST

The border style is not important, actually. What you need to set are the "line thickness" and "border color" properties, which you can do like this:

var f = this.getField("Dropdown1");

f.lineWidth = 0;

f.strokeColor = color.transparent;

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