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
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
...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.
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?
Copy link to clipboard
Copied
Not that I know of.
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.
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.
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.
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?
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.
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.
Copy link to clipboard
Copied
Thanks abailescollins, I contacted Enfocus already and got answer from Jeff Phillips, Enfocus Product Specialist
Copy link to clipboard
Copied
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.