Search code examples
javascriptpdfhighlightlivecycle-designer

How to round corners of highlights in a PDF textfield


I managed to get the Background-Color of my texfield rounded by selecting borders, rounding them and then turning them off again. But when the field is highlighted (using app.runtimeHighlight = true;) in Adobe Reader there's no rounding anymore. Is there a way to round the Highlights using Adobe Livecycle-Designer?

Not Highlighted:enter image description here Highlighted (no rounding):enter image description here


Solution

  • Thanks for the additional info; with them, it is possible to answer.

    The highlight is provided by Acrobat and based on the field's perimeter. The field's perimeter is rectangular, and therefore, runtimeHighlight will always create rectangular highlights.

    A workaround would be to add to the fields a colored background and change it when the field gets the focus and change it back when it loses the focus.