|
4 | 4 |
|
5 | 5 | ### Usage:
|
6 | 6 |
|
7 |
| - cef-pdf [options] [--url=<input>] [output] |
| 7 | + cef-pdf [options] --url=<url>|--file=<path> [output] |
8 | 8 |
|
9 | 9 | Options:
|
10 |
| - --help -h This help screen. |
11 |
| - --url=<input> URL to load, may be http, file, data, anything supported by Chromium. |
12 |
| - If omitted standard input is read. |
13 |
| - --size=<size> Size (format) of the paper: A3, B2.. or custom <width>x<height> in mm. |
14 |
| - A4 is the default. |
15 |
| - --list-sizes Show all defined page sizes. |
16 |
| - --landscape Wheather to print with a landscape page orientation. |
17 |
| - Default is portrait |
18 |
| - --margin=<margin> Paper margins in mm (much like CSS margin but without units) |
19 |
| - If omitted default margin is applied. |
| 10 | + --help -h This help screen. |
| 11 | + --url=<url> URL to load, may be http, file, data, anything supported by Chromium. |
| 12 | + --file=<path> File path to load using file:// scheme. May be relative to current directory. |
| 13 | + --size=<spec> Size (format) of the paper: A3, B2.. or custom <width>x<height> in mm. |
| 14 | + A4 is the default. |
| 15 | + --list-sizes Show all defined page sizes. |
| 16 | + --landscape Wheather to print with a landscape page orientation. |
| 17 | + Default is portrait |
| 18 | + --margin=<spec> Paper margins in mm (much like CSS margin but without units) |
| 19 | + If omitted some default margin is applied. |
| 20 | + --javascript Enable JavaScript. |
| 21 | + --backgrounds Print with backgrounds. |
20 | 22 |
|
21 | 23 | Server options:
|
22 |
| - --server Start HTTP server |
23 |
| - --host=<host> If starting server, specify ip address to bind to. |
24 |
| - Default is 127.0.0.1 |
25 |
| - --port=<port> Specify server port number. Default is 9288 |
| 24 | + --server Start HTTP server |
| 25 | + --host=<host> If starting server, specify ip address to bind to. |
| 26 | + Default is 127.0.0.1 |
| 27 | + --port=<port> Specify server port number. Default is 9288 |
26 | 28 |
|
27 | 29 | Output:
|
28 | 30 | PDF file name to create. Default is output.pdf
|
|
0 commit comments