@modernice/pdfire
v2.0.0
Published
Node.js client for the PDFire.io API.
Downloads
3
Readme
PDFire Node
This package provides a client for the PDFire.io API. Read the Documentation for a list of available options.
Installation
npm install --save @modernice/pdfire
or
yarn add @modernice/pdfire
Basic usage
import pdfire, { ConversionParams } from 'pdfire'
const pdf = await pdfire('YOUR-API-KEY')
.conversion()
.url('https://google.com')
.margin(0)
.format('A4')
.getResult()
await pdf.saveTo('/path/on/disk.pdf')