AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

PDF is encrypted or not ?

Open naveedninesol opened this issue 4 years ago • 2 comments

How to check whether our pdf is encrypted or not. Stuck in it

naveedninesol avatar Jul 26 '22 05:07 naveedninesol

.onError(object : OnErrorListener {
   override fun onError(t: Throwable?) {
      if (t is PdfPasswordException) {
         //Here do what you want your encrypted pdf
	} else {
         Log.e("Log", "onError: ${t?.message}", t)
	}
   }
})

AhmerAfzal1 avatar Jul 26 '22 07:07 AhmerAfzal1

Thanks I got it

On Tue, Jul 26, 2022 at 12:23 PM Ahmer Afzal @.***> wrote:

.onError(object : OnErrorListener { override fun onError(t: Throwable?) { if (t is PdfPasswordException) { //Here do what you want your encrypted pdf } else { Log.e("Log", "onError: ${t?.message}", t) } } })

— Reply to this email directly, view it on GitHub https://github.com/barteksc/AndroidPdfViewer/issues/1097#issuecomment-1195105717, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ56DFZTOZXZY5VYEKEK2ADVV6G6PANCNFSM54URHYZQ . You are receiving this because you authored the thread.Message ID: @.***>

naveedninesol avatar Jul 26 '22 07:07 naveedninesol