Opening,reading, writing pdf files using Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Opening,reading, writing pdf files using Python

can we open pdf files using open("sample.pdf") or is there any other way for doing it is reading and writing pdf files are also done through the method mentioned above along with "r","w" or is there any other method to do so

11th Aug 2018, 8:20 AM
vishwa kumar
vishwa kumar - avatar
6 Answers
+ 21
using PyPdf2 check this. https://youtu.be/XoK1MyFG1Sg
11th Aug 2018, 9:05 AM
Maninder $ingh
Maninder $ingh - avatar
17th Aug 2021, 12:17 PM
Zechariah YAKAP
Zechariah YAKAP - avatar
+ 4
Yes,you can do it .you should import PyPdf2 module
14th Nov 2021, 5:38 AM
Ya_zeinabezahra
Ya_zeinabezahra - avatar
+ 3
Yes you can do it
16th Jun 2021, 1:35 PM
Abdelrahman shaheen
+ 2
Yes you can using a specific module which you need to import
6th Mar 2022, 10:23 PM
Forkou Francine
Forkou Francine - avatar
0
Well the second part of the name is the type of the file, right?
12th Jul 2022, 2:08 PM
Ramtin Jafari
Ramtin Jafari - avatar