Harrison gdn file! I need to figure out why ![]() However, print(page_content) does return null if I use another PDF file, “55 HARRISON GARDEN.pdf” which I actually need to extract some information from: In: This code works for the ndvi file, but returns empty string for the Print(page_content) closing the pdf file object ![]() Number_of_pages =pdfReader.getNumPages() creating a page object PdfReader = PyPDF2.PdfFileReader(pdfFileObj, strict=False) getting the number of pages in pdf file PdfFileObj = open('C:/Google Drive/Ward 29/data/ndvi.pdf', 'rb') creating a pdf reader object To do so, I am using this code and it works fine returning the PDF as a continuous text as string variable: In: ![]() I am using Python 3.6.1 on Windows 8.1 and I want to extract certain texts from a group of PDF files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |