Skip to content

Conversation

Sayad-Uddin-Tahsin
Copy link

Some of the attributes are changed.

pages = pdfReader.numPages
book = open("opp.pdf", 'rb')
pdfReader = PyPDF2.PdfReader(book)
pages = len(pdfReader.pages)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They've removed numPages attribute and added pages

page = pdfReader.getPage(num)
text = page.extractText()
for i in range(7, pages):
page = pdfReader.pages[i]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They've removed the getPage and added pages[i] method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant