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

Need to change font color

Guide ,
May 26, 2016 May 26, 2016

Copy link to clipboard

Copied

Hi All,

I am beginner of acrobat scripting.

My requirement is, i need to find font size more than 12 and change color to black. Not sure how to start my coding.

Please help.

Regards,

K

TOPICS
Acrobat SDK and JavaScript

Views

2.3K

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

correct answers 1 Correct answer

Community Expert , May 26, 2016 May 26, 2016

As was already explained, you don't have access to text colors from within a JavaScript, there are also no actions you can apply. The only way to accomplish this is via the plug-in API. You can create your own plug-in, but I would advice against that because there are plug-ins available that perform this type of modifications. One that I am aware of is the Enfocus PitStop Pro preflight tool (unfortunately, this feature is not built into Acrobat's own Preflight tool). You can create a PitStop pre

...

Votes

Translate

Translate
Community Expert ,
May 26, 2016 May 26, 2016

Copy link to clipboard

Copied

Are you talking about text in a form field or a comment, or in the actual static contents of the file? If the latter then it's not possible to do that using a script.

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
Guide ,
May 26, 2016 May 26, 2016

Copy link to clipboard

Copied

Thanks for your prompt reply.

Yes it's for my static text in PDF. It have 124 pages, i manually changing colors now

Can we use any action to achieve this?

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 ,
May 26, 2016 May 26, 2016

Copy link to clipboard

Copied

Not that I know of.

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 ,
Jun 13, 2016 Jun 13, 2016

Copy link to clipboard

Copied

YES!
Text in the form field of a government form (ironically they require black ink) is blue but I need the form field text/font to be black.

Your help is very much appreciated.

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 ,
Jun 14, 2016 Jun 14, 2016

Copy link to clipboard

Copied

Do you have Acrobat? If so, try going to Form Edit mode and then right-click the field, select Properties and you'll be able to change the text color under the Appearance tab.

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 ,
May 26, 2016 May 26, 2016

Copy link to clipboard

Copied

As was already explained, you don't have access to text colors from within a JavaScript, there are also no actions you can apply. The only way to accomplish this is via the plug-in API. You can create your own plug-in, but I would advice against that because there are plug-ins available that perform this type of modifications. One that I am aware of is the Enfocus PitStop Pro preflight tool (unfortunately, this feature is not built into Acrobat's own Preflight tool). You can create a PitStop preflight profile that changes the color of text of a certain font size. PitStop is not cheap, but it's definitely cheaper than building your own tool.

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
Guide ,
May 26, 2016 May 26, 2016

Copy link to clipboard

Copied

Thanks Karl Heinz Kremer

Sure i will try this with Pitstop, also is it possible to give overprint for text if text size is bigger than 24 and black is the applied color?

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 ,
May 26, 2016 May 26, 2016

Copy link to clipboard

Copied

You might be able to do that. It's been a while since I've used PitStop for that. They have a evaluation version, so you should be able to determine that before you pay for the solution.

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
Contributor ,
Jun 02, 2016 Jun 02, 2016

Copy link to clipboard

Copied

You can do that in PitStop, if you get stuck drop me a mail. andrewb@enfocus.com

I'm the PitStop Product Manager.

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
Guide ,
Jun 02, 2016 Jun 02, 2016

Copy link to clipboard

Copied

Thanks abailescollins, I contacted Enfocus already and got answer from Jeff Phillips, Enfocus Product Specialist

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
LEGEND ,
Jun 14, 2016 Jun 14, 2016

Copy link to clipboard

Copied

LATEST

I advise against changing the design of a government form in any way. If they have designed a field in blue, that is their problem. That assumes the government supplied it, and you return a filled in PDF. Any edits may cause your form to be rejected.

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