How to change color of textField #1222
Unanswered
DontTellMyMom
asked this question in
Q&A
Replies: 1 comment
-
I have a lead, but idk where to use em either. I will open a related issue. https://pdf-lib.js.org/docs/api/interfaces/fieldappearanceoptions#optional-textcolor |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am having trouble figuring out how to change the color of a textfield.
I can easily change the text it self,
name.setText(fullName)
but how do i change color?When using
name.setFontColor(rgb(1, 0, 1));
i get error[0] TypeError: name.setFontColor is not a function
same happens with [0] template.drawText('This text was added with JavaScript!', {
Beta Was this translation helpful? Give feedback.
All reactions