Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

If you need to create a single pdf file from a bundle of pdf files, this may do the trick. You have to list your source pdf files in a text file and pass this to the python utility for processing. You'll need several python libs to be installed:

import PyPDF2 from reportlab.lib.pagesizes import letter from reportlab.pdfgen import canvas import io import argparse

After running it over your files, you should get a single large pdf file as output. The source files are not touched. It's free, and by using it you accept that I take no responsibility for any use, or consequences!

python catpdf.py -h

usage: catpdf.py [-h] [-e ENTRIES_PER_PAGE] [-u URL_PREFIX] [-a] [-s] [-d]
                 pdf_list output_filename index_file

Merge PDFs and add page numbers with separator index.

positional arguments:
  pdf_list              Path to the text file containing the list of PDFs to
                        merge
  output_filename       Path to the output merged PDF file
  index_file            Name for the index file (without extension)

options:
  -h, --help            show this help message and exit
  -e ENTRIES_PER_PAGE, --entries-per-page ENTRIES_PER_PAGE
                        Number of entries per page in the index.pdf file
                        (default is 35)
  -u URL_PREFIX, --url-prefix URL_PREFIX
                        URL prefix for hyperlinks in the index.html file
  -a, --append-index    Append the index.pdf file to the merged PDF if
                        provided
  -s, --separator       Do write separator pages to the merged PDF
  -d, --document-id     Sequential Document number ID

About

Merge multiple pdf files into one, with separator pages, index etc.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages