Difference between revisions of "Nicepdf"

From BITPlan Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
{{OsProject
 
{{OsProject
|id=pdftool
+
|id=nicepdf
 
|state=active
 
|state=active
 
|owner=WolfgangFahl
 
|owner=WolfgangFahl
|title=pdftool
+
|title=nicepdf
|url=https://github.com/WolfgangFahl/pdftool
+
|url=https://github.com/WolfgangFahl/nicepdf
 
|version=0.0.1
 
|version=0.0.1
 
|description=PDF manipulation tool
 
|description=PDF manipulation tool
Line 13: Line 13:
 
}}
 
}}
  
{{pip|pdftool}}
+
{{pip|nicepdf}}
 
= Motivation =
 
= Motivation =
 +
The initial motivation was to convert a scanned Booklet PDF to a straight PDF.
 +
 +
https://user-images.githubusercontent.com/1336221/267867264-7896be80-54ae-461a-9862-4273644e4c36.png
 +
= Demo =
 +
http://nicepdf.bitplan.com
 +
 +
= Usage =
 +
<source lang='bash'>
 +
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.
 +
</source>
  
 
= Links =
 
= Links =

Latest revision as of 05:52, 27 July 2024

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