Difference between revisions of "Nicepdf"
Jump to navigation
Jump to search
(→Demo) |
|||
| (12 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{OsProject | {{OsProject | ||
| − | |id= | + | |id=nicepdf |
|state=active | |state=active | ||
|owner=WolfgangFahl | |owner=WolfgangFahl | ||
| − | |title= | + | |title=nicepdf |
| − | |url=https://github.com/WolfgangFahl/ | + | |url=https://github.com/WolfgangFahl/nicepdf |
|version=0.0.1 | |version=0.0.1 | ||
|description=PDF manipulation tool | |description=PDF manipulation tool | ||
| Line 12: | Line 12: | ||
|since=2023-09-07 | |since=2023-09-07 | ||
}} | }} | ||
| − | |||
| − | = | + | {{pip|nicepdf}} |
| + | = 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 = | ||
| + | * https://pypi.org/project/PyPDF2/ | ||
| + | * https://pymupdf.readthedocs.io/en/latest/tutorial.html | ||
| + | * https://github.com/pikepdf/pikepdf | ||
* https://github.com/stlehmann/pdftools | * https://github.com/stlehmann/pdftools | ||
| + | * https://github.com/pdfarranger/pdfarranger | ||
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.
Demo
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.