You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the dependencies via gradle did not work out.
So I check out the repo and build the aars myself for now.
Need to adjust package names in our code.
As AhmerPdfium is kotlin based, I seem to have a lot of trouble to use it in NativeScript
It aso seems like directly loading from URLs is not supported anymore.
Activity
madmas commentedon Sep 4, 2025
This becomes more urgent as google requests updates in the context of 16kb alignment.
Pdfium we should upgrade to:
https://github.com/marain87/PdfiumAndroid
madmas commentedon Sep 5, 2025
...which still has a prolbem in the included native libs. (Validation with our script and with the llvm commands from the google page fail).
The thread in barteksc/PdfiumAndroid#95 has some valuable details.
https://github.com/renzified/PdfiumAndroid/releases/tag/V2.0.1
and
https://github.com/ynkfish/PdfiumAndroid/releases/tag/v2.0.1
both claim they have fixed this, but checks show they have not:
ynkfish:
where we would need to see 0x4000 and 2**14 at least in the last columns according to https://developer.android.com/guide/practices/page-sizes
renzfied:
Unfortunately, both repos dont have "Issues" enabled so its not possible to contact them on that path.
madmas commentedon Sep 5, 2025
Now I got a hint upon https://github.com/AhmerAfzal1/AhmerPdfium who claims to be a maintained fork of barteksc/PdfiumAndroid and barteksc/AndroidPdfViewer.
Using the dependencies via gradle did not work out.
So I check out the repo and build the aars myself for now.
Need to adjust package names in our code.
As AhmerPdfium is kotlin based, I seem to have a lot of trouble to use it in NativeScript
It aso seems like directly loading from URLs is not supported anymore.
Also, the check fails also for these AARs:
__unknown__ - - NONCOMPLIANT ../../packages/pdf/platforms/android/libPdfium-release.aar Failing libs: jni/armeabi-v7a/libc++_shared.so, jni/armeabi-v7a/libpdfium.so, jni/armeabi-v7a/libpdfium_jni.so, jni/x86/libc++_shared.so, jni/x86/libpdfium.so, jni/x86/libpdfium_jni.soAlso, llvm check fails:
madmas commentedon Sep 10, 2025
In the end, the attempt with the version from marian87 worked 👍 NativeScript/plugins#645