@modernice/pdfire
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

PDFire.io logo

PDFire Node

GitHub

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')

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @modernice/pdfire

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

110 kB

Total Files

63

Last publish

Collaborators

  • bono