@tamu-dor/pdf-invoice
v2.0.0-beta.3
Published
Package to generate pdf invoices
Downloads
17
Readme
@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);
}
}