New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

svg2pdf-cli

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg2pdf-cli

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

latest
Source
npmnpm
Version
1.1.10
Version published
Maintainers
1
Created
Source

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

Keywords

svg

FAQs

Package last updated on 12 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts