Using submodule LibPDFium, which could be compiled within 6 minutes!
git clone --recursive --depth=1 https://github.com/KnIfER/PDFium-Android-Demo.git
Pdfium source codes (LibPdfium/src/main/PDFIUM) are pulled from AOSP/android11-mainline-release
Special Thanks:
-
bash-ndk *.mk
buildscripts via barteksc/modpdfium -
cmake
buildscript via freedom10086/PdfiumAndroid -
Java & Jni
via barteksc/AndroidPdfViewer
The beheaviour of this project is just like the original Demo project : barteksc/AndroidPdfViewer
Yet this repo contains three build systems :
-
bash-ndk.
Use : Activate the LibPdfiumSep library module. Then right click on thejni
folder and select 'Open In Ternimal' in the android studio. Runndk-build
and (hopefully) done !
Develop : To develop the pre-compiled libpdfium.so, prepare win10 and ubuntu subsystem or a real linux system. Then run./build.sh
. -
cmake.
Use / Develop : Activate LibPdfium. Then Just sync and build ! -
visual studio.
VS project files are configured by hand.
Yes, from now on you can build libpdfium.so right in the VS 2019 !
- 3:45 minutes, release, -O3, 5.93 MB
- 3:25 minutes, debug, 10.1 MB