Skip to content

pdf2htmlEX 0.15.1 Android JNI

Compare
Choose a tag to compare
@ViliusSutkus89 ViliusSutkus89 released this 08 Sep 20:52
· 837 commits to master since this release

libpdf2htmlEX delivered as a shared library which can be used in Android App through JNI.
pdf2htmlEX-release.tar contains all needed files to be included in Android App.
pdf2htmlEX-debug.tar contains libraries with debug symbols.

libpdf2htmlEX requires Android API 16 (Jelly Bean) or newer.
Android-sample-app requires Android API 19 (KitKat) or newer due to the usage of Storage Access Framework. SAF is not a requirement of libpdf2htmlEX, only a requirement of the current implementation of sample-app.

Install procedure for libpdf2hmlEX consists of extracting JNI library (libpdf2htmlEX.so) and asset files (css, et. cetera).

tar --extract --file pdf2htmlEX-release.tar --directory=android-sample-app/app/src/main jniLibs assets

jniLibs/pdf2htmlEX.cmake defines imported target, which can be used in other CMake targets.
Example usage (from android-sample-app/src/main/cpp/CMakeLists.txt):

include(${CMAKE_SOURCE_DIR}/../jniLibs/pdf2htmlEX.cmake)
target_link_libraries(native-lib pdf2htmlEX)

libpdf2htmlEX contains no JNI specific code. JNI layer is implemented in android-sample-app/src/main/cpp/native-lib.cpp