Starting v2020R2.05, the highlight mode for link annotations can be set using Qoppa’s PDF API jPDFProcess, jPDFNotes or jPDFEditor.
There are 4 different highlight modes supported for links:
- Highlight Mode Inverted
- Highlight Mode Outline
- Highlight Mode Push
- Highlight Mode None
Link link = (Link) annot; link.setHighlightMode(Link.HIGHTLIGHT_MODE_INVERT); //link.setHighlightMode(Link.HIGHTLIGHT_MODE_OUTLINE); //link.setHighlightMode(Link.HIGHTLIGHT_MODE_PUSH); //link.setHighlightMode(Link.HIGHTLIGHT_MODE_NONE);
Qoppa’s PDF components were updated to highlight the links on the page based on the corresponding highlighted style when the links are pressed (event happens on mouse pressed).
This sample starts from our jPDFNotes sample / demo application, then adds a button to the toolbar that will change the highlight mode of links present on the first page of the document.