Skip to content

Conversation

mrbrentkelly
Copy link
Contributor

@mrbrentkelly mrbrentkelly commented Jul 7, 2025

Updates pdfiumandroid and gson dependencies on Android so that the react-native-pdf library is compliant with the 16 KB Page Size requirement.

Note: This PR contributes back the existing patch from @abitling 🎩.

Related issues:

@wonday wonday merged commit d49cb92 into wonday:master Jul 23, 2025
1 check failed
@xgtz421
Copy link

xgtz421 commented Jul 29, 2025

@mrbrentkelly Please release the latest code to npm.

@Winfans
Copy link

Winfans commented Aug 14, 2025

Hi, when will the latest code be released?

@jenskuhrjorgensen
Copy link

Hi @wonday
There are quite a few critical fixes for this lib that still awaits a release (#950, #927 and #926). Is there anything we can do in order to get those fixes released instead of piling them up as patches?

@Stan-1904
Copy link

Is there any chance of a release for the 16KB issue before November 1st? Otherwise, I'll start replacing the library in my app now. I'd also be willing to support the development.

@Gautham495
Copy link

@Stan-1904 - Create a patch file and install it.

It works for me.

@Stan-1904
Copy link

@Gautham495 Thank you for your message. I am working with Expo in the Managed Workflow. Unfortunately, this exceeds my technical knowledge.

@Gautham495
Copy link

@Stan-1904 - It should be straight forward even for expo based projects.

You can DM me in either - Twitter, LinkedIn or send me an email.

I will explain how to implement patches in expo based project as well.

@samueltheprogramer
Copy link

samueltheprogramer commented Sep 5, 2025

in React Native App This solved my issue
Version 0.77.3

android/app/build.gradle

dependencies {
// your other RN dependencies...

// Override to fix 16 KB alignment issue
implementation 'io.legere:pdfiumandroid:1.0.32'
implementation 'com.google.code.gson:gson:2.13.1'

}

@qper228
Copy link

qper228 commented Sep 9, 2025

in React Native App This solved my issue Version 0.77.3

android/app/build.gradle

dependencies {
// your other RN dependencies...

// Override to fix 16 KB alignment issue
implementation 'io.legere:pdfiumandroid:1.0.32'
implementation 'com.google.code.gson:gson:2.13.1'

}

saved the day actually

@raj248
Copy link

raj248 commented Sep 9, 2025

in React Native App This solved my issue Version 0.77.3

android/app/build.gradle

dependencies {
// your other RN dependencies...

// Override to fix 16 KB alignment issue
implementation 'io.legere:pdfiumandroid:1.0.32'
implementation 'com.google.code.gson:gson:2.13.1'

}

It works like a charm

@qper228
Copy link

qper228 commented Sep 9, 2025

in React Native App This solved my issue Version 0.77.3
android/app/build.gradle

dependencies {
// your other RN dependencies...

// Override to fix 16 KB alignment issue
implementation 'io.legere:pdfiumandroid:1.0.32'
implementation 'com.google.code.gson:gson:2.13.1'

}

It works like a charm

well actually once I scanned my libs (all were 0x4000) Google Play Console still have this 16kb page warning

@TomasMatarazzo
Copy link

in React Native App This solved my issue Version 0.77.3
android/app/build.gradle

dependencies {
// your other RN dependencies...

// Override to fix 16 KB alignment issue
implementation 'io.legere:pdfiumandroid:1.0.32'
implementation 'com.google.code.gson:gson:2.13.1'

}

It works like a charm

well actually once I scanned my libs (all were 0x4000) Google Play Console still have this 16kb page warning

could you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.