Back to Blog

    Developer Blog

    How to highlight form fields and set form field highlight color?

    Foxit PDF SDK for Android

    The UIExtensionsManager.enableFormHighlight() interface is provided to set whether to enable highlighting the links in PDF documents. By default, the form fields will be highlighted. If you do not want to highlight form fields, please set the parameter to “false” as follows:

    // Assume you have already Initialized a UIExtensionsManager object 
    uiExtensionsManager.enableFormHighlight(false);
    

    The UIExtensionsManager.setFormHighlightColor() 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:

    // Set the highlight color to blue.
    uiExtensionsManager.setFormHighlightColor(0x4b0000ff);