python-combine-pdfs/README.md

18 lines
838 B
Markdown
Raw Permalink Normal View History

2018-07-09 04:37:21 -07:00
# python-combine-pdfs
2018-07-09 04:46:48 -07:00
Combine PDF files using [PyPDF2](https://pythonhosted.org/PyPDF2/).
Usage:
python-combinepdfs file1.pdf file2.pdf fileN.pdf -o output.pdf
Files are combined in the order they are given. Output is optional (defaults to combined.pdf).
2018-07-22 08:36:44 -07:00
Command line parsing code comes from this [seed program](https://github.com/cgarbin/seed-python/blob/master/seed-command-line-arg-parsing.py).
2018-07-09 04:46:48 -07:00
### Note
2018-07-09 04:53:26 -07:00
This code is using a [workaround for PyPDF2](https://stackoverflow.com/a/49927541/336802) for the "empty output file wiht Python 3" issue documented [here](https://github.com/mstamy2/PyPDF2/issues/293).
2018-07-09 04:46:48 -07:00
2018-07-09 04:53:26 -07:00
PyPDF2 is [looking for new maintainers](https://github.com/mstamy2/PyPDF2/issues/385). Once that issue is resolved and a new version is released, the code can be cleaned up by removng the explicit context creation.