On this page
Guides
Highlight Form Fields and Hyperlinks
The highlight feature for PDF form fields helps users quickly locate and fill out forms, significantly enhancing efficiency in scenarios involving extensive form completion.
The highlight feature for hyperlinks allows users to add hyperlinks to crucial information within a PDF document, facilitating other users in swiftly locating and comprehending information. This not only improves the readability of the PDF document but also enhances its interactivity.
This example shows how to highlight form fields and hyperlinks:
swift
// Set the form highlighting.
CPDFKitConfig.sharedInstance().setEnableFormFieldHighlight(true)
// Set hyperlink highlighting.
CPDFKitConfig.sharedInstance().setEnableLinkFieldHighlight(true)
objective-c
// Set the form highlighting.
[[CPDFKitConfig sharedInstance] setEnableFormFieldHighlight: YES];
// Set hyperlink highlighting.
[[CPDFKitConfig sharedInstance] setEnableLinkFieldHighlight: YES];