Open
Description
I am experiencing an issue where react-native-print is unable to print password-protected PDFs on Android. When attempting to print such a PDF, the native print screen opens but then crashes immediately. The same PDFs work fine on iOS without any issues.
Steps to Reproduce:
- Pass the protected pdf file URI to
react-native-print
. - Call
RNPrint.print({ filePath: uri })
to print the document. - The native print preview opens briefly, then the app crashes on Android.
Expected Behavior:
react-native-print
should either prompt for a password before printing or provide an appropriate error message.- The app should not crash but instead handle password-protected PDFs gracefully.
Actual Behavior:
- On Android, the native print preview opens and then crashes immediately.
- On iOS, the same PDF prints successfully.
Environment:
Library Version: react-native-print
^0.11.0
React Native Version: 0.73.6
Metadata
Metadata
Assignees
Labels
No labels