throw exception in case of secure pdf file.