Noteworthy Programming Masterpiece
Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@vivliostyle/cli

2.0.0 • Public • Published

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.

Keywords

Install

npm i @vivliostyle/cli

DownloadsWeekly Downloads

13

Version

2.0.0

License

AGPL-3.0

Unpacked Size

136 kB

Total Files

39

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar