{"id":34036780,"url":"https://github.com/metaist/pdfmerge","last_synced_at":"2026-04-06T07:02:30.734Z","repository":{"id":7061179,"uuid":"8344330","full_name":"metaist/pdfmerge","owner":"metaist","description":"Command-line utility for merging, splicing, and rotating PDF documents.","archived":false,"fork":false,"pushed_at":"2025-11-15T23:20:29.000Z","size":16116,"stargazers_count":142,"open_issues_count":5,"forks_count":25,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-12-15T12:41:59.810Z","etag":null,"topics":["pdf","python"],"latest_commit_sha":null,"homepage":"http://metaist.github.io/pdfmerge/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"sebakerckhof/stratosphere","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metaist.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"metaist"}},"created_at":"2013-02-21T21:26:05.000Z","updated_at":"2025-11-27T20:01:03.000Z","dependencies_parsed_at":"2022-07-30T09:07:58.133Z","dependency_job_id":"68cb551c-b487-4e15-8b1b-25462a141a42","html_url":"https://github.com/metaist/pdfmerge","commit_stats":{"total_commits":57,"total_committers":5,"mean_commits":11.4,"dds":0.08771929824561409,"last_synced_commit":"e3da61c4ea15901f843ae01bd3d6c7f7219c3b28"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/metaist/pdfmerge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaist%2Fpdfmerge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaist%2Fpdfmerge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaist%2Fpdfmerge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaist%2Fpdfmerge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metaist","download_url":"https://codeload.github.com/metaist/pdfmerge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaist%2Fpdfmerge/sbom","scorecard":{"id":637689,"data":{"date":"2025-08-11","repo":{"name":"github.com/metaist/pdfmerge","commit":"34c369774e8e8a15486fb6a6943363ff39d7efb9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Code-Review","score":1,"reason":"Found 4/26 approved changesets -- score normalized to 1","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":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:15","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:16","Warn: no topLevel permission defined: .github/workflows/ci.yaml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/pypi.yaml: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":"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":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/metaist/pdfmerge/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/metaist/pdfmerge/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/metaist/pdfmerge/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/metaist/pdfmerge/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/metaist/pdfmerge/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/metaist/pdfmerge/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/metaist/pdfmerge/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/metaist/pdfmerge/pypi.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/metaist/pdfmerge/pypi.yaml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yaml:32","Warn: pipCommand not pinned by hash: .github/workflows/ci.yaml:33","Warn: pipCommand not pinned by hash: .github/workflows/pypi.yaml:25","Warn: pipCommand not pinned by hash: .github/workflows/pypi.yaml:26","Warn: pipCommand not pinned by hash: .github/workflows/pypi.yaml:30","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand 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"}},{"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":"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":"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":"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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.7 not signed: https://api.github.com/repos/metaist/pdfmerge/releases/818304","Warn: release artifact v0.0.6 not signed: https://api.github.com/repos/metaist/pdfmerge/releases/299498","Warn: release artifact v0.0.5 not signed: https://api.github.com/repos/metaist/pdfmerge/releases/299411","Warn: release artifact v0.0.7 does not have provenance: https://api.github.com/repos/metaist/pdfmerge/releases/818304","Warn: release artifact v0.0.6 does not have provenance: https://api.github.com/repos/metaist/pdfmerge/releases/299498","Warn: release artifact v0.0.5 does not have provenance: https://api.github.com/repos/metaist/pdfmerge/releases/299411"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 8 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"}}]},"last_synced_at":"2025-08-21T09:41:06.081Z","repository_id":7061179,"created_at":"2025-08-21T09:41:06.081Z","updated_at":"2025-08-21T09:41:06.081Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31463015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["pdf","python"],"created_at":"2025-12-13T20:42:01.010Z","updated_at":"2026-04-06T07:02:30.729Z","avatar_url":"https://github.com/metaist.png","language":"Python","funding_links":["https://github.com/sponsors/metaist"],"categories":[],"sub_categories":[],"readme":"# pdfmerge: CLI for merging, splicing, and rotating PDFs\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://metaist.github.io/pdfmerge/\"\u003e\u003cimg alt=\"pdfmerge\" width=\"200\" src=\"https://raw.githubusercontent.com/metaist/pdfmerge/main/staple-the-squirrel.png\" /\u003e\u003c/a\u003e\u003cbr /\u003e\n  \u003cem\u003eStaple the Squirrel\u003c/em\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/metaist/pdfmerge/actions/workflows/ci.yaml\"\u003e\u003cimg alt=\"Build\" src=\"https://img.shields.io/github/actions/workflow/status/metaist/pdfmerge/.github/workflows/ci.yaml?branch=main\u0026logo=github\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/pdfmerge\"\u003e\u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/pdfmerge.svg?color=blue\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/pdfmerge\"\u003e\u003cimg alt=\"Supported Python Versions\" src=\"https://img.shields.io/pypi/pyversions/pdfmerge\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Why?\n\nI find myself merging bits of different PDFs fairly regularly and really wanted a simple CLI way to do it.\n\n## Install\n\n```bash\npython -m pip install pdfmerge\n```\n\n## Usage\n\n    $ pdfmerge [-h] [--version]\n      [-o FILE|--output FILE]\n      [-p PASSWORD|--password PASSWORD]\n      PATH[RULE[, RULE ...]] [[PATH[RULE, ...]] ...]\n\n- `-o`, `--output` output file (default: `output.pdf`).\n- `-p`, '--password` password for encrypted files (default: empty string).\n- `PATH` a file, directory, or wildcard string (e.g., `file*.pdf`) of files\n  to merge.\n- `RULE` an optional string indicating which pages to extract and rotate.\n  The syntax for each rule is:\n\n      [START][..][END][ROTATE]\n\n  Where `START` and `END` are positive (1-based) or negative page numbers and\n  `ROTATE` is one of `\u003e`, `V`, or `\u003c` indicating a clockwise rotation of\n  90, 180, 270 degrees, respectively.\n\n## Command-line Example\n\n    $ pdfmerge -o out.pdf file1.pdf file2.pdf[3,3] file2.pdf[1V,2..-1] \"other*.pdf[\u003c]\" \"/path/pdf[1..4\u003e,5]\"\n\nThis example illustrates several features:\n\n- specifying an output file\n- merging multiple files, some more than once\n- splicing parts of file using indices (1-based; negatives allowed)\n- including the same page multiple times\n- rotating a page or page range\n- merging all the PDFs in a directory\n\n[Read more about the options](https://metaist.github.io/pdfmerge/__main__.html)\n\n# Python Module Usage\n\n`pdfmerge` can also be imported into python scripts.\n\n```python\nfrom pdfmerge import pdfmerge\npdfmerge([\"pdf-1.pdf\", \"pdf-2.pdf[2\u003e]\"], \"output.pdf\")\n```\n\n## License\n\n[MIT License](https://github.com/metaist/pdfmerge/blob/main/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaist%2Fpdfmerge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetaist%2Fpdfmerge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaist%2Fpdfmerge/lists"}