PDF to Write document converter
Project description
pdftowrite
A utility that converts PDF to Stylus Labs Write document
How does it work
It converts PDF pages to SVG vector graphics and merges them into a Write document.
Render modes
There are two render modes:
- poppler: The best quality, but losing text (default)
- inkscape: Preserving text, but rendering results could be weird
Install
pip install --user pdftowrite
Requirements
- Poppler
- Inkscape (either native or flatpak)
Example
pdftowrite example.pdf
Usage
usage: pdftowrite [-h] [-v] [-o OUTPUT] [-m {poppler,inkscape}] [-d DPI]
[-g PAGES] [-u NODUP_PAGES] [-Z] [-s SCALE] [-x X] [-y Y]
[-X XRULING] [-Y YRULING] [-l MARGIN_LEFT] [-p PAPERCOLOR]
[-r RULECOLOR]
FILE
Convert PDF to Stylus Labs Write document
positional arguments:
FILE A pdf file
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-o OUTPUT, --output OUTPUT
Specify output filename
-m {poppler,inkscape}, --mode {poppler,inkscape}
Specify render mode (default: poppler)
-d DPI, --dpi DPI Specify resolution for bitmaps and rasterized filters
(default: 96)
-g PAGES, --pages PAGES
Specify pages to convert (e.g. "1 2 3", "1-3")
(default: all)
-u NODUP_PAGES, --nodup-pages NODUP_PAGES
Specify no-dup pages (e.g. "1 2 3", "1-3") (default:
all)
-Z, --nozip Do not compress output
-s SCALE, --scale SCALE
Scale page size (default: 1.0)
-x X Specify the x coordinate of the viewport of <svg>
(default: 10.0)
-y Y Specify the y coordinate of the viewport of <svg>
(default: 10.0)
-X XRULING, --xruling XRULING
Specify x rulling (default: 0.0)
-Y YRULING, --yruling YRULING
Specify y rulling (default: 40.0)
-l MARGIN_LEFT, --margin-left MARGIN_LEFT
Specify margin left (default: 100.0)
-p PAPERCOLOR, --papercolor PAPERCOLOR
Specify paper color (default: #FFFFFF)
-r RULECOLOR, --rulecolor RULECOLOR
Specify rule color (default: #9F0000FF)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdftowrite-2021.3.22.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file pdftowrite-2021.3.22.tar.gz
.
File metadata
- Download URL: pdftowrite-2021.3.22.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb6a86f9fd9ae8d154328f222086068a38fdf989b3d89eb0e634dc435cf836e2 |
|
MD5 | a56ba64b0c8062cba3eef3082bba919e |
|
BLAKE2b-256 | 0d45f5acbe6a67dacbf6a44086a202b501a79037ff08093e37763a28aaa9a4e3 |
File details
Details for the file pdftowrite-2021.3.22-py3-none-any.whl
.
File metadata
- Download URL: pdftowrite-2021.3.22-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28e236021db93d28491e16bfc5822ba5e01c59805e354f206e31ea65a93e1293 |
|
MD5 | baedf1b0c0a385f1e60d37aec3a7d6e8 |
|
BLAKE2b-256 | 178b6961ffef36d6affbc78543506b2f7ae7605af7e2c94e9f43d8ed6c2287d8 |