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.

Add files via upload

Abdul Wahab Junaidfd42be145b17
diff --git a/Python Tools/Extract Data From PDF/XMPSpecificationPart3.pdf b/Python Tools/Extract Data From PDF/XMPSpecificationPart3.pdf
new file mode 100644
index 0000000..9af5ff6
Binary files /dev/null and b/Python Tools/Extract Data From PDF/XMPSpecificationPart3.pdf differ
diff --git a/Python Tools/Extract Data From PDF/extractTextFromPDF.py b/Python Tools/Extract Data From PDF/extractTextFromPDF.py
new file mode 100644
index 0000000..b84d9bc
--- /dev/null
+++ b/Python Tools/Extract Data From PDF/extractTextFromPDF.py
@@ -0,0 +1,12 @@
+#!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)