This project allows you to access PDFNet's native C++ library right in your android project.
app/
src/ - Project source files and resources.
build.gradle - Module level Gradle build file.
PDFTron/ - location of the native lib files
build.gradle - Project level Gradle build file.
gradle.properties - Project-wide Gradle settings. Contains Apryse license key and credentials.
- Make sure that both the NDK & LLDB tools are installed in your android SDK
- Open the Project Structure window (File -> Project Structure) and set the NDK location to the default
- Add headers and platform .so files to the project
- Download the latest Android SDK from here
- Extract and navigate to
/lib/full/
and extractpdftron.aar
(7-zip or any archiving software will work) - Copy the
libs
folder in to theapp
folder in the projects root - Copy the folders in the
jni
directory into thePDFTron
folder in the projects root - Copy the
headers
folder found in the root of the SDK download into theapp
folder in the projects root
After the above steps have been followed, your project structure should look like the following:
app/
src/
libs/PDFNet.jar
headers/
C/
Common/
FDF/
Filters/
Impl/
PDF/
SDF/
build.gradle
PDFTron/
arm64-v8a/libPDFNetC.so
armeabi/libPDFNetC.so
armeabi-v7a/libPDFNetC.so
x86/libPDFNetC.so
x86_64/libPDFNetC.so
build.gradle
gradle.properties
- Clean and run the project and you should see the installed fonts displaying in your simulator/device. Note that you can attach a debugger and step through the C++ code in
cpp/native-lib.cpp
- Access the C++ API here
See License