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] [-o OUTPUT] [-m {poppler,inkscape}] [-d DPI] [-g 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
-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)
-Z, --nozip Do not compress output
-s SCALE, --scale SCALE
Scale page size (default: 0.5)
-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.16.tar.gz
(6.7 kB
view details)
Built Distribution
File details
Details for the file pdftowrite-2021.3.16.tar.gz
.
File metadata
- Download URL: pdftowrite-2021.3.16.tar.gz
- Upload date:
- Size: 6.7 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 | 6af7792d6d7783adc26256ca5ad063a33b2423cdc57e5e28e653348c5d970e3e |
|
MD5 | f0d5e00b8f24c2c0fcb2ac7f5af0c440 |
|
BLAKE2b-256 | f4178bf1b13ec81e1e35d7860f48f6b0c60770cadea1e28204dcafc9b0a38c11 |
File details
Details for the file pdftowrite-2021.3.16-py3-none-any.whl
.
File metadata
- Download URL: pdftowrite-2021.3.16-py3-none-any.whl
- Upload date:
- Size: 8.0 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 | ed330badc8f36454a035a14b8c4e13ef7a9e940d6d061e5fb31942493bd1f6c2 |
|
MD5 | e913f7015fb3167841451f17cf9e860b |
|
BLAKE2b-256 | b1fc6de99680d171af3cf29d84564eaba4488e2d3bce5b5c7815ca9767bebb22 |