Foxit Developer Blog

    Insights, tutorials, and updates from the Foxit PDF SDK engineering team.

    Foxit PDF SDK for Android

    How to perform Indexed Full-Text Search in Foxit PDF SDK for Android?

    Foxit PDF SDK for Android supported Indexed Full Text Search since version 5.0. To use this feature, follow the steps below: 1) Get document source information. Create a document source based on a directory which will be used as the search directory. public DocumentsSource(String directory) 2) Create a full text search object, and set a [...]

    Read Article
    Foxit PDF SDK for Android

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

    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 [...]

    Read Article
    Foxit PDF SDK for Android

    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 uiExtensionsManager.enableLinkHighlight(false); The UIExtensionsManager.setLinkHighlightColor() interface [...]

    Read Article
    Foxit PDF SDK for Android
    Foxit PDF SDK for iOS

    License key and serial number don’t work after trial download

    Generally, the package uploaded to the website is supposed to work. It has been tested before it is uploaded. So, if you find the license key and serial number won’t work, it may be caused by the time of your device. If the device’s time is earlier than the StartDate in the rdk_key.txt file found [...]

    Read Article
    Foxit PDF SDK for Android

    How do I insert an image into a PDF file?

    There are two ways to help you insert an image into a PDF file. The first one is calling PDFPage.addImageFromFilePath interface. You can refer to the following sample code which inserts an image into the first page of a PDF file: Note: Before calling PDFPage.addImageFromFilePath interface, you should get and parse the page that you [...]

    Read Article
    Foxit PDF SDK for Android

    How can I add a link annotation to a PDF file?

    To add a link annotation to a PDF file, you should first call the PDFPage.addAnnot to add an annotation to a specified page, then call Action.Create to create an action, and set the action to the added link annotation. Following is the sample code for adding a URI link annotation to the first page of [...]

    Read Article
    Foxit PDF SDK for Android

    What should I do if I want to display a specified page when opening a PDF document using PDF SDK for Android?

    To display a specified page when opening a PDF file, the interface gotoPage (int pageIndex) should be used. Foxit PDF SDK for Android utilizes multi-thread to improve rendering speed, so please make sure the document has been loaded successfully before using the gotoPage interface. Please implement the callback interface in the IDocEventListener, and then call [...]

    Read Article
    Foxit PDF SDK for Android

    How do I open a PDF document from a specified PDF file path using PDF SDK for Android?

    Foxit PDF SDK for Android provides multiple interfaces to open a PDF document. You can open a PDF document from a specified PDF file path, or from a memory buffer. For from a specified PDF file path, there are two ways to do that. The first one is that just use the openDoc interface, which [...]

    Read Article
    Foxit PDF SDK for Android
    Foxit PDF SDK for iOS
    Foxit PDF SDK for UWP

    How are Foxit PDF SDK for Android, iOS and UWP UIExtension Component organized?

    The UIExtension Component of Foxit PDF SDK for Android, iOS and UWP uses a “module-based” architecture, which refines each feature into a module. All of the modules except LocalModule (used for file management) will be loaded by default if you add UIExtension to your Foxit PDF SDK for Android, iOS and UWP. You can customize [...]

    Read Article
    Foxit PDF SDK for Web

    Foxit PDF SDK for Web Features

    Features Foxit PDF SDK for Web is a cross-platform solution for PDF online viewing. Foxit PDF SDK for Web enterprise edition has been chosen by many of the world’s leading firms for integration into their solutions. This article will outline and describe the features provided by Foxit PDF SDK for Web. PDF Viewing Foxit PDF [...]

    Read Article