{"id":15028406,"url":"https://github.com/pymupdf/pymupdf","last_synced_at":"2026-04-01T19:40:59.500Z","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-09-08T14:01:32.000Z","size":354824,"stargazers_count":7978,"open_issues_count":33,"forks_count":637,"subscribers_count":66,"default_branch":"main","last_synced_at":"2025-09-08T16:20:56.015Z","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-10-06T18:54:25.000Z","updated_at":"2025-09-08T15:29: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":172,"template":false,"template_full_name":null,"purl":"pkg:github/pymupdf/PyMuPDF","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymupdf%2FPyMuPDF/sbom","scorecard":{"id":751647,"data":{"date":"2025-08-11","repo":{"name":"github.com/pymupdf/PyMuPDF","commit":"fe7e1ebbb01988dd7a6377e62f00e0ca72d7a3ba"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.9,"checks":[{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 25 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build_wheels.yml:1","Warn: no topLevel permission defined: .github/workflows/cla.yml:1","Warn: no topLevel permission defined: .github/workflows/test-valgrind.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Warn: no topLevel permission defined: .github/workflows/test_multiple.yml:1","Warn: no topLevel permission defined: .github/workflows/test_pyodide.yml:1","Warn: no topLevel permission defined: .github/workflows/test_quick.yml:1","Warn: no topLevel permission defined: .github/workflows/test_sysinstall.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: COPYING:0","Info: FSF or OSI recognized license: GNU Affero General Public License v3.0: COPYING:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_wheels.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/build_wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_wheels.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/build_wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_wheels.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/build_wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_wheels.yml:102: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/build_wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_wheels.yml:108: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/build_wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_wheels.yml:120: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/build_wheels.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build_wheels.yml:126: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/build_wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_wheels.yml:159: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/build_wheels.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cla.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/cla.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-valgrind.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test-valgrind.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-valgrind.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test-valgrind.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_multiple.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test_multiple.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_multiple.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test_multiple.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_pyodide.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test_pyodide.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_pyodide.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test_pyodide.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_quick.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test_quick.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_quick.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test_quick.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_quick.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test_quick.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_quick.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test_quick.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_sysinstall.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/pymupdf/PyMuPDF/test_sysinstall.yml/main?enable=pin","Info:   0 out of  21 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}}]},"last_synced_at":"2025-08-22T20:32:39.296Z","repository_id":4948451,"created_at":"2025-08-22T20:32:39.296Z","updated_at":"2025-08-22T20:32:39.296Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274358712,"owners_count":25270680,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09-24T20:08:15.444Z","updated_at":"2026-04-01T19:40:59.492Z","avatar_url":"https://github.com/pymupdf.png","language":"Python","funding_links":[],"categories":["📚 فهرست"],"sub_categories":["کار با pdf"],"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.10 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","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"}