nguyenq / tess4j

Java JNA wrapper for Tesseract OCR API
Apache License 2.0
1.61k stars 373 forks source link

Fix null pointer exceptions #207

Closed breathermachine closed 3 years ago

breathermachine commented 3 years ago

I use tess4j for PDF processing. I've noticed that if I provide a password-protected PDF file, that the convertPdf2Png method will just throw a NullPointerException.. This is very strange as the library should be throwing IOExceptions instead of NullPointerExceptions if it encounters any error during decoding.