Nicepdf

From BITPlan Wiki
Jump to navigation Jump to search

OsProject

OsProject
id  nicepdf
state  active
owner  WolfgangFahl
title  nicepdf
url  https://github.com/WolfgangFahl/nicepdf
version  0.0.1
description  PDF manipulation tool
date  2023-09-09
since  2023-09-07
until  


Installation

pip install nicepdf
# alternatively if your pip is not a python3 pip
pip3 install nicepdf 
# local install from source directory of nicepdf 
pip install .

upgrade

pip install nicepdf  -U
# alternatively if your pip is not a python3 pip
pip3 install nicepdf -U


Motivation

The initial motivation was to convert a scanned Booklet PDF to a straight PDF.

267867264-7896be80-54ae-461a-9862-4273644e4c36.png

Demo

http://nicepdf.bitplan.com

Usage

nicepdf -h
usage: nicepdf [-h] [-a] [-c] [-d] [-l] [-i INPUT] [-rol] [--host HOST]
               [--port PORT] [-s] [-V] [-o OUTPUT] [-v] [-rp ROOT_PATH] [-r]

PDF manipulation tool - e.g. booklet conversion

options:
  -h, --help            show this help message and exit
  -a, --about           show about info [default: False]
  -c, --client          start client [default: False]
  -d, --debug           show debug info [default: False]
  -l, --local           run with local file system access [default: False]
  -i INPUT, --input INPUT
                        input file
  -rol, --render_on_load
                        render on load [default: False]
  --host HOST           the host to serve / listen from [default: localhost]
  --port PORT           the port to serve from [default: 9861]
  -s, --serve           start webserver [default: False]
  -V, --version         show program's version number and exit
  -o OUTPUT, --output OUTPUT
                        Path to the output PDF file.
  -v, --verbose         show verbose output [default: False]
  -rp ROOT_PATH, --root_path ROOT_PATH
                        path to pdf files [default:
                        /Users/wf/Library/Python/3.10/lib/python/site-
                        packages/nicepdf_examples]
  -r, --from_binder     Handle case when pages have been scanned in reverse
                        order starting with the middle pages from the binder.

Links