Skip to content
Search

PyMuPDF

lastmod 2025-10-11created 2025-10-112 edits

Data extraction, analysis, conversion, and manipulation of PDF documents

Installation

Install the package with the following command:

pip install PyMuPDF

The following code removes all hyperlinks contained in a document:

import fitz

doc = fitz.open("input.pdf")
for page in doc:
    links = page.get_links()
    for link in links:
        page.delete_link(link)
doc.save("output.pdf")
doc.close()

See also

Favorite site

author Zer0 sitemap