1#!pip install tabula-py
2import tabula
3#read all table data
4df = tabula.read_pdf("sample.pdf",pages=[1,2])
5df[1]
6
7#tabula.convert_into("sample.pdf", "sample.csv", output_format="csv")
1from docx2pdf import convert
2
3convert("input.docx")
4convert("input.docx", "output.pdf")
5convert("my_docx_folder/")
6
1pip install PyPDF2
2import PyPDF2
3pdfFileObject=open(r"F:\fileName.pdf",'rb')
4pdfReader = PyPDF2.PdfFileReader(pdfFileObject) //Creating reader obj
5print(" No. Of Pages :", pdfReader.numPages)//To know no.of pages