An open API service indexing awesome lists of open source software.

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).

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