Skip to content

Commit ff7c24e

Browse files
committed
Merge branch 'devel'
2 parents 0f9a330 + 555e2f2 commit ff7c24e

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

README.md

+17-15
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,27 @@
44

55
### Usage:
66

7-
cef-pdf [options] [--url=<input>] [output]
7+
cef-pdf [options] --url=<url>|--file=<path> [output]
88

99
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.
2022

2123
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
2628

2729
Output:
2830
PDF file name to create. Default is output.pdf

src/Common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ std::string getTempDirectory();
1515

1616
namespace constants {
1717
// cef-pdf version number
18-
const std::string version = "0.2.0";
18+
const std::string version = "0.2.1";
1919
// Internal scheme
2020
const std::string scheme = "cefpdf";
2121
// Default page size

0 commit comments

Comments
 (0)