Skip to content Skip to sidebar Skip to footer

Count The Number Of Pages In Pdf File

I have a problem when I use this code to count the number of pages in pdf file : if j[i].rstrip() == 'Page' or j[i].rstrip() == 'page': rxcountpages = re.compile(r'/Ty

Solution 1:

you have to read the contents of the file:

data = open("/home/suleiman/Desktop/CVE-2011-2462_36EE5F9C51316E060657AA86D48670E8","rb").read()

Post a Comment for "Count The Number Of Pages In Pdf File"