Test PDF encryption