in reply to Reading PDF files

but for some PDF files it was reading the file in encrypted format instead of text format. can anyone please tell me if any module or a way to solve the issue?

This is a feature of PDF files, you need to supply the password/whatever to decrypt.