1.1.10 • Published 1 year ago

svg2pdf-cli v1.1.10

Weekly downloads
9
License
Apache-2.0
Repository
github
Last release
1 year ago

svg2pdf-cli

Build Status Coverage Status NPM Version NPM Downloads

A command-line tool for convert SVG image to PDF file

Installation

svg2pdf-cli can be installed from NPM using:

npm install -g svg2pdf-cli

NOTE: libgbm required

sudo apt-get update
sudo apt-get install -y libgbm-dev

Features

  • Support HTML, SVG file input
  • Support set SVG size (width and height), NOTE: This option only can change the svg image size on the PDF page, but can't set PDF page size.
  • Support PDF file output

Because svg2pdf using Chromium to render the svg, and it only support these format:

Formatsize
Letter8.5in x 11in
Legal8.5in x 14in
Tabloid11in x 17in
Ledger17in x 11in
A033.1in x 46.8in
A123.4in x 33.1in
A216.54in x 23.4in
A311.7in x 16.54in
A48.27in x 11.7in
A55.83in x 8.27in
A64.13in x 5.83in

Useage

Usage: svg2pdf <source> <destination>
e.g.: svg2pdf source.svg destination.pdf
e.g.: svg2pdf -w 100% source.svg destination.pdf
e.g.: svg2pdf -w 100px -h 100px source.svg destination.pdf
e.g.: svg2pdf -w 100px -h 100px -f A4 source.svg destination.pdf
1.1.10

1 year ago

1.1.7

4 years ago

1.1.5

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago