Groups
Groups
Sign in
Groups
Groups
pdfium
Conversations
About
Send feedback
Help
Pdfium for Android: Creating libpdfium.cr.so file and it is not working correctly too.
854 views
Skip to first unread message
mailga...@gmail.com
unread,
Mar 9, 2021, 2:10:17 PM
3/9/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfium
Hi all,
I'm having trouble building libpdfium.so for android. I listed down the steps I followed and I'm using Ubuntu 20.04.
git clone
https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:/data/depot_tools/
cd /source/
gclient config --unmanaged
https://pdfium.googlesource.com/pdfium.git
echo "target_os = [ 'android' ]" >> .gclient
gclient sync
cd pdfium
./build/install-build-deps-android.sh
gclient runhooks
Added “
FPDFSDK_EXPORTS
” to defines in “pdf_common_config” section of BUILD.gn file.
gn gen out
cd out
vim
args.gn
Added the following to
args.gn
file.
is_debug = false
target_os = "android"
target_cpu = "x86"
pdf_is_standalone = true
is_component_build = true
pdf_enable_xfa = false
pdf_enable_v8 = false
pdf_use_skia_paths = false
pdf_use_skia = false
symbol_level = 1
cd /data/build/source/pdfium
ninja -C out
I'm getting a
libpdfium.cr.so
file of having a size of 3.9MB, but when I added this to an android viewer project, it is not working as expected. I'm using the following projects as the viewer (
https://github.com/mshockwave/PdfiumAndroid
and
https://github.com/mshockwave/PdfiumAndroid-Demo-App
).
I replaced libpdfium.so file of above project with my newly build libpdfium.so (I renamed
libpdfium.cr.so
as
libpdfium.so)
Can someone please help to me figure out what is wrong in my steps?
Thank you
Best regards
Gayashan Rathnavibushana
Paulo Coutinho
unread,
Mar 26, 2021, 1:56:58 AM
3/26/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfium
Try this project:
https://github.com/paulo-coutinho/pdfium-lib
Reply all
Reply to author
Forward
0 new messages