Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pypdf2 advanced tutorial


import PyPDF2

with open('Python_Tutorial.pdf', 'rb') as pdf_file:
    pdf_reader = PyPDF2.PdfFileReader(pdf_file)
    print(f'Number of Pages in PDF File is {pdf_reader.getNumPages()}')
    print(f'PDF Metadata is {pdf_reader.documentInfo}')
    print(f'PDF File Author is {pdf_reader.documentInfo["/Author"]}')
    print(f'PDF File Creator is {pdf_reader.documentInfo["/Creator"]}')
Comment

PREVIOUS NEXT
Code Example
Python :: pandas get higher value of column 
Python :: change every element of list python with map 
Python :: run python in c ++ 
Python :: jupyter notebook bold text 
Python :: program to demonstrate encapsulation in python 
Python :: Lucky four codechef solution 
Python :: python datetime to unix timestamp 
Python :: how to put space in between list item in python 
Python :: prolog finding the max from a list of facts 
Python :: read one column pandas 
Python :: task.loop discord.py 
Python :: return array of sorted objects 
Python :: django float validator 
Python :: parse invoice python 
Python :: python range() float 
Python :: print("hello world") 
Python :: use latest file on aws s3 bucket python 
Python :: print torch model python 
Python :: how to run python in the browser 
Python :: python cat 
Python :: only split from third delimiter python 
Python :: python module has no attribute 
Python :: next day in python 
Python :: how to remove text from plot in python 
Python :: TypeError: method() takes 1 positional argument but 2 were given 
Python :: python numpy array subtract 
Python :: mean absolute error in machine learning formula 
Python :: reverse a list in python 
Python :: python range from n to 0 
Python :: python destructuring 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =