Foxit PDF SDK
for Android

Creating, viewing and editing PDF files on Android devices has never been easier than with our modern, easy-to-use PDF SDK for Android. Oour built-in UI Extension component helps ship products quickly, even if your team of developers has limited knowledge of PDF. Powered by Fx Core™ technology, PDF SDK for Android has never been faster.

The best tools for developers

Fast integration

Using Android Studio developers can use our Android PDF SDK in a variety of languages such as Java, Kotlin or C++. With JavaScript you can use our Cordova or React Native binding libraries for more native development. Foxit provides all the essentials for an Android developer to use our technology with ease. Simply put, our core API makes our product easily accessible for developers of all levels and experience.

import com.foxit.sdk.PDFViewCtrl; import com.foxit.sdk.common.Constants; import com.foxit.sdk.common.fxcrt.RectF; import com.foxit.sdk.common.fxcrt.RectFArray; import com.foxit.sdk.pdf.PDFDoc; import com.foxit.sdk.pdf.PDFPage; import com.foxit.sdk.pdf.TextSearch; import com.foxit.sdk.pdf.annots.Annot; import com.foxit.sdk.pdf.annots.Note; import com.foxit.sdk.pdf.annots.QuadPoints; import com.foxit.sdk.pdf.annots.QuadPointsArray; import com.foxit.sdk.pdf.annots.TextMarkup; import com.foxit.sdk.common.fxcrt.PointF; // Define path String pdfpath = "xxx/Sample.pdf"; // Create PDF from scratch PDFDoc doc = new PDFDoc(pdfpath); doc.load(null); // Get first page of document PDFPage pdfPage = doc.getPage(1); // Create rectangle RectF rect = new RectF(100, 100, 120, 120); Note note = new Note(pdfPage.addAnnot(Annot.e_Note, rect)); note.setIconName("Comment"); // Set border color to blue note.setBorderColor(0xff0000ff); // Add some content note.setContent("Foxit PDF SDK"); // Reset appearance
Java
server.js 100% | 6/6 ln : 4
package com.foxit; import android.content.Context; import android.os.Environment; import com.foxit.home.R; import com.foxit.pdfreader.MultiTabView; import com.foxit.pdfreader.fragment.AppTabsManager; import com.foxit.sdk.common.Constants; import com.foxit.sdk.common.Library; import com.foxit.uiextensions.controls.toolbar.IBaseItem; import com.foxit.uiextensions.home.local.LocalModule; import com.foxit.uiextensions.utils.UIToast; import java.io.File; import java.util.HashMap; public class App { private static String sn = "your license key signature"; private static String key = "your license key"; private Context mContext; private int errCode = Constants.e_ErrSuccess; private static App INSTANCE = new App(); public static App instance() { return INSTANCE; } private App(){ errCode = Library.initialize(sn, key); } public boolean checkLicense(){ switch (errCode) { case Constants.e_ErrSuccess: break ; case Constants.e_ErrInvalidLicense: UIToast.getInstance(mContext).show(mContext.getString(R.string.fx_the_license_is_invalid)); return false; default: UIToast.getInstance(mContext).show(mContext.getString(R.string.fx_failed_to_initialize_the_library)); return false; } return true;
Java
server.js 100% | 6/6 ln : 4
Developing with Foxit

Built for Android

Requires Android 4.x or newer; 32/64-bit ARM (armeabi-v7a/arm64-v8a) or 32-bit Intel x86 CPU.

Developer Benefits

Designed for faster development

Native UI

Our Android PDF SDK is built with developers in mind. We provide a built-in PDF viewer which will half your development while allowing you to customize your viewer to your requirements and brand.

Easy to Integrate

Our Android PDF library is fully compliant with Google’s policies for app developers using third-party components, meaning your apps will be approved on Play Store faster. Foxit PDF SDK for Android 6.x offers 64-bit support, which is mandatory starting August 1st, 2019.

Device-agnostic

Anything from smart watches, to phones, to Chromebooks, to even cars – Foxit PDF SDK renders documents inside your application just like you expected them.

Powered by Foxit’s core technology

The core technology of Foxit PDF SDK has been around for years and is trusted by a large number of well-known companies. Foxit’s powerful engine makes document viewing fast and consistent across all platforms.

Smart Forms

Give users the ability to fill out digital forms on the go with their device of choice. Apps have never been more productive!

Read more Read more

Digital Signature

Use ink signatures to let customers sign documents in their digital devices. Sign PDF in web apps easily without needing to print a file to sign again!

Read more Read more

PDF Annotations

Our PDF SDK provides full support for displaying and annotating PDF in web applications with an extensive range of functions for creating, editing or importing/exporting annotations.

Read more Read more
Robust functionality

More Features

Viewing & rendering

Our core API provides for high-fidelity rendering of PDF documents with optimized performance for desktop and mobile platforms.

Full-text search

Fast full-text search for any PDF document, language, or encoding type. The SQLite-based full-text search delivers near-instant results, even for repositories on any digital device.

Extras

Add-ons

XFA Forms

XFA Forms are XML-based forms wrapped inside a PDF. Securely capture, present, move, process, output, update and print information associated with static and dynamic XFA forms. Simplify your data sharing, transportation and availability with XFA.

Digital Rights Management

Keep your PDF documents secure by connecting your application and files to Microsoft’s Rights Management Services platform natively. Foxit PDF SDK also integrates with your IRM and DRM solution.

Redaction

Achieve full GDPR-compliance by programmatically searching and sensoring sensitive information in your documents for legal or security purposes. Keep your customer and employee information safe.

Perform specific tasks

Function Specific Products

Foxit Android PDF SDK

Our Android PDF Reader is built with our PDF SDK for Android and free to download from the Google Play Store.

Used everywhere

Trusted by some of the world’s largest companies.

Take a look at who uses our technology.