Skip to content

Cpdf::ACROFORM_FIELD_TEXT how remove background color and border #3346

Answered by bsweeney
sagarprostartme asked this question in Q&A
Discussion options

You must be logged in to vote

Form field highlight is an acrobat feature, not something that Dompdf is doing. Users can control that feature through the app preferences.

I'd advise against overriding usability preferences, but if you feel that your field has sufficient styling to make it apparent that it is actually a fillable field you can try to disable the highlight using Acrobat JavaScript.

$cpdf->javascript("app.runtimeHighlight = false;");

I say try because JS may not be enabled by default in some viewers.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sagarprostartme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants