pdfmerge
Command-line utility for merging, splicing, and rotating PDF documents.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.3%) to scientific vocabulary
Keywords
Repository
Command-line utility for merging, splicing, and rotating PDF documents.
Basic Info
- Host: GitHub
- Owner: metaist
- License: other
- Language: Python
- Default Branch: main
- Homepage: http://metaist.github.io/pdfmerge/
- Size: 15.3 MB
Statistics
- Stars: 140
- Watchers: 6
- Forks: 26
- Open Issues: 4
- Releases: 4
Topics
Metadata Files
README.md
pdfmerge: CLI for merging, splicing, and rotating PDFs
Why?
I find myself merging bits of different PDFs fairly regularly and really wanted a simple CLI way to do it.
Install
bash
python -m pip install pdfmerge
Usage
$ pdfmerge [-h] [--version]
[-o FILE|--output FILE]
[-p PASSWORD|--password PASSWORD]
PATH[RULE[, RULE ...]] [[PATH[RULE, ...]] ...]
-o,--outputoutput file (default:output.pdf).-p, '--password` password for encrypted files (default: empty string).PATHa file, directory, or wildcard string (e.g.,file*.pdf) of files to merge.RULEan optional string indicating which pages to extract and rotate. The syntax for each rule is:[START][..][END][ROTATE]
Where START and END are positive (1-based) or negative page numbers and
ROTATE is one of >, V, or < indicating a clockwise rotation of
90, 180, 270 degrees, respectively.
Command-line Example
$ pdfmerge -o out.pdf file1.pdf file2.pdf[3,3] file2.pdf[1V,2..-1] "other*.pdf[<]" "/path/pdf[1..4>,5]"
This example illustrates several features:
- specifying an output file
- merging multiple files, some more than once
- splicing parts of file using indices (1-based; negatives allowed)
- including the same page multiple times
- rotating a page or page range
- merging all the PDFs in a directory
Python Module Usage
pdfmerge can also be imported into python scripts.
python
from pdfmerge import pdfmerge
pdfmerge(["pdf-1.pdf", "pdf-2.pdf[2>]"], "output.pdf")
License
Owner
- Login: metaist
- Kind: user
- Website: metaist.com
- Repositories: 35
- Profile: https://github.com/metaist
GitHub Events
Total
- Issues event: 2
- Watch event: 15
- Fork event: 2
Last Year
- Issues event: 2
- Watch event: 15
- Fork event: 2
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| The Metaist | m****t@m****m | 52 |
| Y.D.X | 7****7 | 2 |
| maethu | b****i@g****h | 1 |
| Lukas Bindreiter | l****r@o****m | 1 |
| Akash Rajendra | a****a@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 28
- Total pull requests: 6
- Average time to close issues: 7 months
- Average time to close pull requests: about 1 year
- Total issue authors: 12
- Total pull request authors: 6
- Average comments per issue: 1.46
- Average comments per pull request: 2.5
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 4
- Pull requests: 0
- Average time to close issues: 1 day
- Average time to close pull requests: N/A
- Issue authors: 3
- Pull request authors: 0
- Average comments per issue: 2.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- metaist (15)
- marmadmax (1)
- ismailuddin (1)
- rolandnsharp (1)
- no1xsyzy (1)
- dcanl (1)
- voostar (1)
- patricktokeeffe (1)
- YDX-2147483647 (1)
- Xsmael (1)
- betesh (1)
- mbeffa (1)
Pull Request Authors
- begert (1)
- arjndr (1)
- lukasbindreiter (1)
- YDX-2147483647 (1)
- thisirs (1)
- shreyas (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 535 last-month
- Total docker downloads: 63
- Total dependent packages: 0
- Total dependent repositories: 4
- Total versions: 8
- Total maintainers: 1
pypi.org: pdfmerge
Command-line utility for merging, splicing, and rotating PDF documents.
- Homepage: https://github.com/metaist/pdfmerge
- Documentation: https://metaist.github.io/pdfmerge/
- License: MIT
-
Latest release: 1.0.0
published over 2 years ago
Rankings
Maintainers (1)
Dependencies
- PyPDF2 >=1.21
- coverage >=3.6
- nose >=1.2.1
- pep8 >=1.4.4
- pylint >=1.2.1
