Foxit Mobile PDF SDK is a Rapid Development Kit for mobile platforms which focuses on helping developers easily integrate powerful Foxit PDF technology into their own apps. With Foxit Mobile PDF SDK, even developers with a limited knowledge of PDF can quickly build a PDF viewer with just a few lines of code.
- Easy-to-use PDF Viewer Control
- Customizable User Interface with Source Code
- Annotation Tools
- Full-Text Searching
- Digital and Handwritten Signature Tools
- PDF Form Filling and Flattening
- Reflow/Crop PDF pages for better reading
- Protect PDFs by Certificate or Password
- Built on Foxit Technology used by billions of end-users
- Excellent Memory Management and Robust Performance
Android device’s requirements:
- Android 4x
- 32/64-bit ARM (armeabi-v7a/arm64-v8a) or 32-bit Intel x86 CPU
Android Studio 2.1.1 or newer (Support Android AAR archives: Gradle 2.1.0 or later)
Android package structure
The package of Foxit Mobile PDF SDK for Android includes the following files:
- docs: A folder containing API references, developer guide.
- libs: A folder containing license files, .so libraries, Jar, AAR files, and UI Extensions Component source code.
- samples: A folder containing Android sample projects.
- getting_started_ios.pdf: This file.
- legal.txt: Legal and copyright information.
- release_notes.txt: Release information.
Running a demo in Android Studio
Foxit MobilePDF SDK for Android provides three different kinds of demos in the “samples” folder for developers to learn how to call the SDK on Android. In this guide, it takes the “complete_pdf_viewer” demo as an example to show how to run it in Android Studio.
- Load the demo in Android Studio through “File -> New -> Import Project…” or “File -> Open…”, and then navigate to where the complete_pdf_viewer project is stored and select the complete_pdf_viewer folder. Continue with “OK”.
- Launch an Android device or an emulator (AVD). In this guide, a Samsung Galaxy S7 edge targeting Android 6.0 will be used as an example.
- Click on “Run -> Run ’app’” to run the demo. On the start screen, click the “complete_pdf_viewer_guide_android.pdf” document, and then it will be opened and displayed as the following:
The demo shows how to build a completely full-featured PDF Viewer on the Android platform with Foxit Mobile PDF SDK.
Integrating Foxit Mobile PDF SDK into your apps
There are two ways to integrate Foxit Mobile PDF SDK for Android into your apps. You can choose what works best for you based on your requirements.
If you just want to use the default built-in UI implementations to develop your apps, for simplicity and convenience, you only need to include the following files:
- FoxitRDKUIExtensions.aar – generated by the “uiextensions_src” project found in the “libs” folder. It includes the FoxitRDK.jar, built-in UI implementations, and resource files that are needed for the built-in UI implementations, such as images, strings, color values, layout files, and other Android UI resources.
- librdk.so (libs/armeabi-v7a, libs/arm64-v8a, libs/x86) – called by the Java APIs in the FoxitRDK.jar. It is the heart of the SDK and contains the core functionalities of Foxit Mobile PDF SDK, and it is built separately for each architecture. Currently it is available
for armeabi-v7a, arm64-v8a, and x86.
If you want to customize your apps UI design related with PDF, you need to include the following files:
- uiextensions_src project – found in the “libs” folder. It is an open source library that contains some ready-to-use UI module implementations, which can help developers rapidly embed a fully functional PDF reader into their Android app. Of course, developers are not forced to use the default UI, they can freely customize and design the UI for their specific apps through the “uiextensions_src” project.
- FoxitRDK.jar – used by the Java platform. It includes all the Java APIs of Foxit MobilePDF SDK.
- librdk.so (libs/armeabi-v7a, libs/arm64-v8a, libs/x86) – called by the Java APIs in the FoxitRDK.jar. It is the heart of the SDK and contains the core functionalities of Foxit Mobile PDF SDK, and it is built separately for each architecture. Currently it is available for armeabi-v7a, arm64-v8a, and x86.
Please see “developer_guide_android.pdf” document in the “docs” folder for a step-by-step guide to create a new Android app and integrate Foxit Mobile PDF SDK into your apps.
Foxit offers 24/7 support for its products and are fully supported by the PDF industry’s largest development team of support engineers. If you encounter any technical questions or bug issues when using Foxit Mobile PDF SDK, please submit the problem report to the Foxit support team at http://tickets.foxitsoftware.com/create.php. In order to better help you solve the problem, please provide the following information:
- Contact details
- Foxit Mobile PDF SDK product and version
- Your Operating System and IDE version
- Detailed description of the problem
- Any other related information, such as log file or error or screenshot
- You can contact Foxit directly, please use the contact information as follows:
- Phone: 1-866-680-3668
- Email: email@example.com
Support & General Contact:
- Phone: 1-866-MYFOXIT or 1-866-693-6948
- Email: firstname.lastname@example.org