Skip to content
Save the pdf file via Headless Chrome and Vivliostyle.
TypeScript JavaScript CSS HTML Dockerfile Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
broker chore: print console.log inside broker html Jan 9, 2020
src chore: print console.log inside broker html Jan 9, 2020
tests
.dockerignore
.editorconfig chore: Fix editorconfig Dec 16, 2019
.gitignore chore: ignore clutter Oct 10, 2019
.prettierrc chore: add prettier to match styles Oct 10, 2019
.travis.yml chore(ci): install poppler-utils for pdffonts Jan 5, 2020
CHANGELOG.md chore(docs): add CHANGELOG Dec 20, 2019
Dockerfile chore(docker): remove chrome installation script Jan 8, 2020
LICENSE Create LICENSE Aug 2, 2017
Makefile
README.md Update README.md Dec 23, 2019
jest.config.js test: add test Oct 10, 2019
package-lock.json
package.json chore: reorganize lib Jan 9, 2020
tsconfig.json
yarn.lock chore: reorganize lib Jan 9, 2020

README.md

Vivliostyle CLI

Save the pdf file via Headless Chrome and Vivliostyle.

Install

npm install -g @vivliostyle/cli

Usage

Usage: vivliostyle [options] [command]

Options:
  -v, --version    output the version number
  -h, --help       output usage information

Commands:
  build <input>    Launch headless Chrome and save PDF file
  preview <input>  Open preview page and save PDF interactively
  help [cmd]       display help for [cmd]

build command

Launch headless Chrome and save PDF file

Usage: vivliostyle build [options] <input>

Options:
  -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)
  -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

preview command

Open preview page and save PDF interactively

Usage: vivliostyle preview [options] <input>

Options:
  -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)
  -h, --help                   output usage information

Contribute

Build

yarn install
yarn build
yarn link
vivliostyle --version

Docker Build

docker build -t vivliostyle/cli .

License

Licensed under AGPL Version 3.

You can’t perform that action at this time.