https://github.com/aaronland/webster-cli
A command-line tool for generating a PDF file from a URL (rendered by WebKit).
https://github.com/aaronland/webster-cli
cli pdf swift webkit
Last synced: 5 days ago
JSON representation
A command-line tool for generating a PDF file from a URL (rendered by WebKit).
- Host: GitHub
- URL: https://github.com/aaronland/webster-cli
- Owner: aaronland
- License: bsd-3-clause
- Created: 2020-08-23T20:37:24.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T23:32:38.000Z (7 months ago)
- Last Synced: 2025-03-30T17:22:32.826Z (24 days ago)
- Topics: cli, pdf, swift, webkit
- Language: Swift
- Homepage:
- Size: 15.6 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webster-cli
A command-line tool for generating a PDF file from a URL (rendered by WebKit).
## Example
```
$> swift build
[3/3] Linking webster-cli> ./.build/debug/webster-cli -h
USAGE: webster-cli [--dpi ] [--width ] [--height ] [--margin ] [--bleed ] [--verbose ]ARGUMENTS:
The URL you want to generate a PDF from.
The path where your PDF document will be created.OPTIONS:
--dpi The DPI (dots per inch) of your output document. (default: 72.0)
--width The width (in inches) of your document. (default: 8.5)
--height The height (in inches) of your document. (default: 11.0)
--margin The margin (in inches) for each page in your document. (default: 1.0)
--bleed The bleed (in inches) for each page in your document. (default: 0.0)
--verbose Enable verbose (debug) logging. (default: false)
-h, --help Show help information.
```## Credits
This build's on @msmollin's original [webster](https://github.com/msmollin/webster).
## See also
* https://github.com/aaronland/swift-webster