Python bindings for MuPDF PDF toolkit and renderer
Python bindings for the PDF toolkit and renderer MuPDF
pymupdf$ python3 -c "import fitz; doc = fitz.open('document.pdf'); print(doc[0].get_text())"$ python3 -c "import fitz; doc = fitz.open('document.pdf'); pix = doc[0].get_pixmap(); pix.save('page.png')"$ python3 -c "import fitz; doc = fitz.open(); doc.insert_pdf(fitz.open('file1.pdf')); doc.insert_pdf(fitz.open('file2.pdf')); doc.save('merged.pdf')"