@pdfme/generator
Advanced tools
Comparing version 1.0.5 to 1.0.6
/*! | ||
* @name @pdfme/generator | ||
* @version 1.0.5 | Wed Mar 16 2022 | ||
* @version 1.0.6 | Sat May 07 2022 | ||
* @author hand-dot | ||
@@ -5,0 +5,0 @@ * @license MIT |
{ | ||
"name": "@pdfme/generator", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"author": "hand-dot", | ||
"license": "MIT", | ||
"keywords": [ | ||
"pdf", | ||
"pdf-generation", | ||
"pdf-designer", | ||
"pdf-viewer", | ||
"typescript", | ||
"react" | ||
], | ||
"description": "TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!", | ||
@@ -7,0 +15,0 @@ "homepage": "https://pdfme.com", |
# PDFME | ||
<p> | ||
<a href="https://github.com/pdfme/pdfme/blob/master/LICENSE.md"> | ||
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="pdfme is released under the MIT license." /> | ||
</a> | ||
<a href="https://github.com/pdfme/pdfme/actions/workflows/nodejs.yml"> | ||
<img src="https://github.com/pdfme/pdfme/workflows/Unit%20Testing/badge.svg" alt="Unit Testing status" /> | ||
</a> | ||
<a href="https://www.npmjs.com/package/@pdfme/generator"> | ||
<img src="https://img.shields.io/npm/v/@pdfme/generator.svg" alt="Current npm package version." /> | ||
</a> | ||
<a href="https://npmcharts.com/compare/@pdfme/generator?minimal=true"> | ||
<img src="https://img.shields.io/npm/dm/@pdfme/generator.svg" alt="Downloads per month on npm." /> | ||
</a> | ||
<a href="https://pdfme.com/help#contribution"> | ||
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome!" /> | ||
</a> | ||
<a href="https://twitter.com/intent/tweet?text=Awesome+pdf+library%21&url=https://pdfme.com"> | ||
<img src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social" alt="Tweet" /> | ||
</a> | ||
</p> | ||
@@ -36,3 +56,3 @@ TypeScript base PDF generator and React base UI. | ||
The operating requirements should be the node environment `>=14`. | ||
The operating requirements should be the node environment `>=14`. *Please see the note at the end of this section for usage on Node.js <16.* | ||
There are two packages in pdfme, generator and UI. | ||
@@ -79,2 +99,9 @@ | ||
This package transiently relies on the function `atob()` being present in the globl namespace. This function is an old WebAPI which Node.js [added for legacy reasons in v16.0 to the global namespace](https://nodejs.org/dist/latest-v16.x/docs/api/globals.html#atobdata). If you are still using Node.js v14 or v15 you need to ensure that there's a function "atob()" in your global object which you can do by adding this snippet somewhere before executing any code from '@pdfme/generator': | ||
```js | ||
if (!global.atob) { | ||
global.atob = (data) => Buffer.from(data, "base64"); | ||
} | ||
``` | ||
## Template | ||
@@ -106,3 +133,3 @@ | ||
### Sample Template | ||
### Minimal Template | ||
@@ -279,2 +306,3 @@ ```ts | ||
- [react-moveable](https://daybrush.com/moveable/), [react-selecto](https://github.com/daybrush/selecto), [@scena/react-guides](https://daybrush.com/guides/): Used in Designer UI. | ||
- [dnd-kit](https://github.com/clauderic/dnd-kit): Used in Designer UI. | ||
- [bwip-js](https://github.com/metafloor/bwip-js): Used in barcode generation. | ||
@@ -281,0 +309,0 @@ - [zod](https://github.com/colinhacks/zod): Used in Validation. |
14317116
308