{"id":13588964,"url":"https://github.com/pymupdf/PyMuPDF","last_synced_at":"2025-04-08T07:31:36.853Z","repository":{"id":4948451,"uuid":"6105714","full_name":"pymupdf/PyMuPDF","owner":"pymupdf","description":"PyMuPDF is a high performance Python library for data extraction, analysis, conversion \u0026 manipulation of PDF (and other) documents.","archived":false,"fork":false,"pushed_at":"2025-02-05T15:53:32.000Z","size":337727,"stargazers_count":6368,"open_issues_count":41,"forks_count":566,"subscribers_count":66,"default_branch":"main","last_synced_at":"2025-02-06T09:07:10.791Z","etag":null,"topics":["data-science","epub","extract-data","font","mupdf","ocr","pdf","pdf-documents","pymupdf","python","table-extraction","tesseract","text-processing","text-shaping","xps"],"latest_commit_sha":null,"homepage":"https://pymupdf.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"redguide/nodejs","license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pymupdf.png","metadata":{"files":{"readme":"README.md","changelog":"changes.txt","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"docs/supported-files-table.rst","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-10-06T18:54:25.000Z","updated_at":"2025-02-06T08:22:09.000Z","dependencies_parsed_at":"2023-02-17T09:01:09.658Z","dependency_job_id":"ed70896b-d970-4827-a6dd-a96eea8c5fcd","html_url":"https://github.com/pymupdf/PyMuPDF","commit_stats":{"total_commits":2533,"total_committers":77,"mean_commits":"32.896103896103895","dds":0.5542834583497829,"last_synced_commit":"63a3a08a379d75af8e7c95f107d402fb0b52d252"},"previous_names":[],"tags_count":166,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymupdf%2FPyMuPDF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymupdf%2FPyMuPDF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymupdf%2FPyMuPDF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymupdf%2FPyMuPDF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pymupdf","download_url":"https://codeload.github.com/pymupdf/PyMuPDF/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509192,"owners_count":20950232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","epub","extract-data","font","mupdf","ocr","pdf","pdf-documents","pymupdf","python","table-extraction","tesseract","text-processing","text-shaping","xps"],"created_at":"2024-08-01T16:00:16.212Z","updated_at":"2025-04-08T07:31:36.844Z","avatar_url":"https://github.com/pymupdf.png","language":"Python","readme":"# PyMuPDF\n\n**PyMuPDF** is a high performance **Python** library for data extraction, analysis, conversion \u0026 manipulation of [PDF (and other) documents](https://pymupdf.readthedocs.io/en/latest/the-basics.html#supported-file-types).\n\n# Community\nJoin us on **Discord** here: [#pymupdf](https://discord.gg/TSpYGBW4eq)\n\n\n# Installation\n\n**PyMuPDF** requires **Python 3.9 or later**, install using **pip** with:\n\n`pip install PyMuPDF`\n\nThere are **no mandatory** external dependencies. However, some [optional features](#pymupdf-optional-features) become available only if additional packages are installed.\n\nYou can also try without installing by visiting [PyMuPDF.io](https://pymupdf.io/#examples).\n\n\n# Usage\n\nBasic usage is as follows:\n\n```python\nimport pymupdf # imports the pymupdf library\ndoc = pymupdf.open(\"example.pdf\") # open a document\nfor page in doc: # iterate the document pages\n  text = page.get_text() # get plain text encoded as UTF-8\n\n```\n\n\n# Documentation\n\nFull documentation can be found on [pymupdf.readthedocs.io](https://pymupdf.readthedocs.io).\n\n\n\n# \u003ca id=\"pymupdf-optional-features\"\u003e\u003c/a\u003eOptional Features\n\n* [fontTools](https://pypi.org/project/fonttools/) for creating font subsets.\n* [pymupdf-fonts](https://pypi.org/project/pymupdf-fonts/) contains some nice fonts for your text output.\n* [Tesseract-OCR](https://github.com/tesseract-ocr/tesseract) for optical character recognition in images and document pages.\n\n\n\n# About\n\n**PyMuPDF** adds **Python** bindings and abstractions to [MuPDF](https://mupdf.com/), a lightweight **PDF**, **XPS**, and **eBook** viewer, renderer, and toolkit. Both **PyMuPDF** and **MuPDF** are maintained and developed by [Artifex Software, Inc](https://artifex.com).\n\n**PyMuPDF** was originally written by [Jorj X. McKie](mailto:jorj.x.mckie@outlook.de).\n\n\n# License and Copyright\n\n**PyMuPDF** is available under [open-source AGPL](https://www.gnu.org/licenses/agpl-3.0.html) and commercial license agreements. If you determine you cannot meet the requirements of the **AGPL**, please contact [Artifex](https://artifex.com/contact/pymupdf-inquiry.php) for more information regarding a commercial license.\n\n\n\n\n","funding_links":[],"categories":["📄 Document \u0026 PDF Extraction","PYTHON","Python","Python 程序","python","📚 فهرست","Multi-Purpose Libraries","📦 Additional Python Libraries"],"sub_categories":["Ruby","网络服务_其他","کار با pdf","Documentation \u0026 File Processing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpymupdf%2FPyMuPDF","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpymupdf%2FPyMuPDF","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpymupdf%2FPyMuPDF/lists"}