Tuesday, 3 May 2022

Day 25 : Extract Text from PDF with Python




#!/usr/bin/env python
# coding: utf-8

# # Extract Text from PDF with Python

# In[2]:


import PyPDF2
pdf = open("pythonclcoding.pdf", "rb")
reader = PyPDF2.PdfFileReader(pdf)
page = reader.getPage(0)
print(page.extractText())
#clcoding.com


# In[ ]:




0 Comments:

Post a Comment

Codecademy Code Foundations

Popular Posts

Categories

Android (23) AngularJS (1) Assembly Language (2) Books (10) C (75) C# (12) C++ (81) Course (1) Data Strucures (4) Downloads (1) Engineering (13) flutter (1) FPL (17) Hadoop (1) HTML&CSS (38) IS (25) Java (89) Leet Code (4) Pandas (1) PHP (20) Projects (17) Python (319) R (69) Selenium Webdriver (2) Software (14) SQL (27)