i build the project from source following the steps mentioned below and after building the project the generated with below steps, out directory generated the libpdfium.so file which is 33.1mb
Building Steps followed for android
> mkdir build
> cd build
> mkdir build/source
> cd source
> echo "target_os = [ 'android' ]" >> .gclient
> gclient sync
> cd pdfium
> build/install-build-deps-android.sh
Once the dependencies were installed, I executed this :
> gn args out
> arguments ->
target_os = "android"
target_cpu = "arm64" # See "Figuring out target_cpu" below
use_goma = false # Googlers only. Make sure goma is installed and running first.
is_debug = false # Enable debugging features.
# Set true to enable experimental Skia backend.
pdf_use_skia = false
# # Set true to enable experimental Skia backend (paths only).
pdf_use_skia_paths = false
pdf_enable_xfa = false # Set false to remove XFA support (implies JS support).
pdf_enable_v8 = false # Set false to remove Javascript support.
pdf_is_standalone = true # Set for a non-embedded build.
is_component_build = false # Disable component build (Though it should work) #
clang_use_chrome_plugins = false # Currently must be false.
use_cxx11_on_android=false
> ninja -C out pdfium
then i got libpdfium.so which was 33mb in out directory along with many other .so files