Skip to content
Save the pdf file via Headless Chrome and Vivliostyle.
JavaScript CSS Dockerfile HTML
Branch: master
Clone or download
Latest commit 7b71309 Jul 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Add instruction Jul 7, 2019
broker Rename viola -> vivliostyle Jul 7, 2019
lib Rename viola -> vivliostyle Jul 7, 2019
.dockerignore Add Dockerfile Jul 12, 2018
.editorconfig Improve broker page Nov 20, 2017
.gitignore
Dockerfile Rename viola -> vivliostyle Jul 7, 2019
LICENSE Create LICENSE Aug 2, 2017
README.md Create README.md Jul 7, 2019
package.json ⬆️ Version 1.3.0 Jul 7, 2019

README.md

vivliostyle-savepdf

Save the pdf file via Headless Chrome and Vivliostyle.

Install

npm install -g vivliostyle-savepdf

Usage

Usage: savepdf [options] <input>

Options:
  -V, --version                output the version number
  -b, --book                   load document as book mode
                               It can load multi-HTML documents such as an unzipped EPUB and a Web Publication.
                               Please see also http://vivliostyle.github.io/vivliostyle.js/docs/en/
  --no-sandbox                 launch chrome without sandbox (use this option to avoid ECONNREFUSED error)
  -r, --root <root_directory>  specify assets root path (default directory of input file)
  --preview                    open preview page and save PDF interactively
                               If preview option is set, options below this line will be ignored.
  -o, --output <output_file>   specify output file path (default output.pdf) (default: "output.pdf")
  -s, --size <size>            output pdf size (ex: 'A4' 'JIS-B5' '182mm,257mm' '8.5in,11in')
  -t, --timeout <time>         timeout times for waiting Vivliostyle process (default: 60s)
  -h, --help                   output usage information

License

Licensed under AGPL Version 3.

You can’t perform that action at this time.