/addpage

Primary LanguagePythonApache License 2.0Apache-2.0

addpage is a package for adding page number to PDF file.

Usage

$ addpage -h
usage: addpage [-h] [-o OUTFILE] [-n FONT_NAME] [-z FONT_SIZE] [-s START]
              [-k SKIP] [-x MARGIN_X] [-y MARGIN_Y]
              [-a {center,left,right}] [-f FORMAT]
              infile

Add page number to PDF file.

positional arguments:
  infile                input PDF file

options:
  -h, --help            show this help message and exit
  -o OUTFILE, --outfile OUTFILE
  -n FONT_NAME, --font-name FONT_NAME
  -z FONT_SIZE, --font-size FONT_SIZE
  -s START, --start START
  -k SKIP, --skip SKIP
  -x MARGIN_X, --margin-x MARGIN_X
  -y MARGIN_Y, --margin-y MARGIN_Y
  -a {center,left,right}, --alignment {center,left,right}
  -f FORMAT, --format FORMAT

Requirements

  • Python 3

Setup

$ pip install addpage

History

  • 0.0.1 (2018-9-23): first release