in small pypdf2 to analyze pdf files in python photos