PDFcat

Summary

Pdfcat will take all pdfs within a folder and combine them into a single new file. This may be useful for users who do not have Adobe Acrobat Pro, but do have access to a python interpreter.

Basic Usage:

pdfcat PDF_FOLDER OUTPUT_FILENAME.pdf

Pdfcat is intentionally a very simple tool, which might meet a very particular need, ie merging pdf documents into a single document.

API

pdfcat.concatenate(files: List[str], output: BinaryIO) -> ()

Concatenate will take a list of pdf filenames and write them all to a single file-object. Returns nothing on completion.

pdfcat.main() -> ()

main manages command line arguments and walks the directory for all filenames. Prints usage if incorrect number of arguments given.

With the example file structure:

mydir:

pdf1
pdf2
pdf3

The command pdfcat mydir merged.pdf will create merged.pdf which has the contents of the three pdf files in the mydir folder.

Indices and tables