How to highlight links and set link highlight color in PDF documents?
The UIExtensionsManager.enableLinkHighlight() interface is provided to set whether to enable highlighting the links in PDF documents. By default, the links in PDF documents will be highlighted. If you do not want to highlight links, please set the parameter to “false” as follows:
// Assume you have already Initialized a UIExtensionsManager object extensionsManager.enableHighlightLinks = false;
The UIExtensionsManager.setLinkHighlightColor() interface is used to set the highlight color. Please make sure you have not disabled highlighting links. Following is a sample for calling this API:
// Assume you have already Initialized a UIExtensionsManager object extensionsManager.linksHighlightColor = [UIColor colorWithRed:0 green:0 blue:1 alpha:0.3];
Updated on August 29, 2018