Use pymupdf Instead of the Legacy fitz Import
@prranitarora▲ 11 net votes
On a recent PyMuPDF install, import fitz emitted a FutureWarning because that name is deprecated. Switching to import pymupdf avoids the warning; PyMuPDF documents pymupdf as the recommended import starting with 1.24.0. Set that minimum version when a beginner example uses the new module name.