"Password-protected" only means something for a file format if that file format provides a way to provide a password and prompt for it. So general questions like that are useless. It's possible, for example, that iText provides a way to password-protect a PDF file. (If PDF even supports such a thing, which I don't know.) But you'd have to look in ...