Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

278 B
Raw Blame
#!usr/bin/env python3

import PyPDF2

pdfFile = open("pdf/XMPSpecificationPart3.pdf","rb")
pdfReader = PyPDF2.PdfFileReader(pdfFile)

page_number= input("Enter page number:")
pageObj = pdfReader.getPage(int(page_number)-1)
text_pdf = str(pageObj.extractText())

print(text_pdf)