@tamu-dor/pdf-invoice
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-beta.2 • Public • Published

@tamu-dor/pdfInvoice

ReactPDF component that displays invoice in pdf format.

Installation

Install it from npm and include it in your React build process (using Webpack, Browserify, etc).

npm install --save @tamu-dor/pdfInvoice

or:

yarn add @tamu-dor/pdfInvoice

Usage

On server side.

import React from 'react';
import { create } from '@tamu-dor/pdf-invoice';

function GenerateInvoicePdf(invoice) {
  try {
    const content = await create(invoice);
    return content;
  } catch (e) {
    console.log('failed to generate pdf invoice', e);
  }
}

Package Sidebar

Install

npm i @tamu-dor/pdf-invoice

Weekly Downloads

6

Version

2.0.0-beta.2

License

ISC

Unpacked Size

404 kB

Total Files

9

Last publish

Collaborators

  • mattvoss