Foxit Developer Blog

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

    Foxit PDF SDK for iOS

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

    Foxit PDF SDK for iOS fully supports Indexed Full Text Search. 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. -(id)initWithDirectory: (NSString *)directory; 2) Create a full text search object, and set a path of [...]

    Read Article
    Foxit PDF SDK for iOS

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

    The interface is provided to set whether to enable highlighting the form fields in PDF form files. By default, the form fields will be highlighted. If you do not want to highlight form fields, you should change the source code of the UI Extensions Component, please refer to PDF SDK for iOS Developer Guide to [...]

    Read Article
    Foxit PDF SDK for iOS

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

    Read Article
    Foxit PDF SDK for iOS

    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 FSPDFPage::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 FSPDFPage::addImageFromFilePath interface, you should get and parse the page that you [...]

    Read Article
    Foxit PDF SDK for iOS

    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 FSPDFPage::addAnnot to add an annotation to a specified page, then call FSAction::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 iOS

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

    To display a specified page when opening a PDF file, the interface [pdfViewCtrl gotoPage: (int) animated: (BOOL)] should be used. Foxit PDF SDK for iOS utilizes multi-thread to improve rendering speed, so please make sure the document has been loaded successfully before using the gotoPage interface. The first one is that making a conditional statement [...]

    Read Article
    Foxit PDF SDK for iOS

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

    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 iOS

    What is Bitcode? Does Foxit PDF SDK for iOS support Bitcode?

    Bitcode is an intermediate representation of a compiled binary. Including bitcode will allow Apple to re-optimize your app binary in the future without the need to submit a new version of your app to the store. Yes. Foxit MobilePDF SDK for iOS supports Bitcode since version 3.0.

    Read Article
    Foxit PDF SDK for Android

    How can I set the night mode color?

    From version 5.1, Foxit PDF SDK for Android supports setting the night mode color as desired. To set the night mode color, you should call the PDFViewCtrl.setMappingModeBackgroundColor(int) and PDFViewCtrl.setMappingModeForegroundColor(int) APIs to set the color as you wish, then set the color mode by using PDFViewCtrl.setColorMode(int). Note: If the color mode is already set to Renderer.e_ColorModeMapping, [...]

    Read Article
    Foxit PDF SDK for Android

    How to print a PDF document using Foxit PDF SDK for Android?

    Foxit PDF SDK for Android supports the print feature since version 5.1. You can press the Wireless Print button on the More Menu view in the Complete PDF viewer demo to print the PDF document. Furthermore, you can call the following API to print the PDF documents: // for iPhone and iTouch public void startPrintJob(Context [...]

    Read Article