Skip to content
Snippets Groups Projects
Commit dc1a9252 authored by Fred Chasen's avatar Fred Chasen
Browse files

Update Readme options

parent 2f2e9fd7
No related branches found
No related tags found
1 merge request!11Add request interception handler
Pipeline #30159 passed with stages
in 1 minute and 34 seconds
...@@ -17,23 +17,28 @@ pagedjs-cli ./path/to/index.html -o result.pdf ...@@ -17,23 +17,28 @@ pagedjs-cli ./path/to/index.html -o result.pdf
## Options ## Options
``` ```
-h, --help output usage information -V, --version output the version number
-V, --version output the version number -i, --inputs [inputs] Inputs
-i, --inputs [inputs] Inputs -o, --output [output] Output
-o, --output [output] Output -d, --debug Debug
-d, --debug Show Electron Window to Debug -l, --landscape Landscape printing (default: false)
-l, --landscape Landscape printing -s, --page-size [size] Print to Page Size [size]
-s, --page-size [size] Print to Page Size [size] -w, --width [size] Print to Page Width [width] in MM
-w, --width [size] Print to Page Width [width] -h --height [size] Print to Page Height [weight] in MM
-h --height [size] Print to Page Height [weight] -t, --timeout [ms] Set a max timeout of [ms]
-m, --page-margin [margin] Print with margin [margin] -x, --html output html file
-n, --hyphenate [lang] Hyphenate with language [language], defaults to "en-us" -b, --blockLocal Disallow access to filesystem for local files
-hi, --hypher_ignore [str] Ignore passed element selectors, such as ".class_to_ignore, h1" -r, --blockRemote Disallow requests to remote servers
-ho, --hypher_only [str] Only hyphenate passed elements selector, such as ".hyphenate, aside" --allowedPath [allowedPaths] Only allow access to given filesystem paths, repeatable. (default: [])
-e, --encoding [type] Set the encoding of the input html, defaults to "utf-8" --allowedDomain [allowedDomains] Only allow access to given remote domains, repeatable (default: [])
-t, --timeout [ms] Set a max timeout of [ms] --outline-tags [tags] Specifies that an outline should be generated for the resulting PDF
--outline-tags [tags] Specifies that an outline should be generated for the resulting PDF document. [tags] specifies which HTML tags should be considered for that outline. "h1,h2" will trigger an outline with "h1" tags as root elements and "h2" elements as their childs. document. [tags] specifies which HTML tags should be considered for that
--additional-script <script> Additional script tags which are added to the HTML document before rendering. This is useful for adding custom pagedjs handlers. The option can be repeated. (default: []) outline. "h1,h2" will trigger an outline with "h1" tags as root elements
and "h2" elements as their childs.
--additional-script <script> Additional script tags which are added to the HTML document before
rendering. This is useful for adding custom pagedjs handlers. The option
can be repeated. (default: [])
--browserEndpoint Use a remote Chrome server with browserWSEndpoint
``` ```
## Hyphenation ## Hyphenation
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment