https://github.com/astrocoders/pdfmake-to-html
An experiment to convert pdfmake's JSON tree into a DOM tree
https://github.com/astrocoders/pdfmake-to-html
html pdf pdfmake
Last synced: about 1 year ago
JSON representation
An experiment to convert pdfmake's JSON tree into a DOM tree
- Host: GitHub
- URL: https://github.com/astrocoders/pdfmake-to-html
- Owner: Astrocoders
- License: mit
- Created: 2017-05-08T12:58:28.000Z (about 9 years ago)
- Default Branch: develop
- Last Pushed: 2017-05-08T17:47:41.000Z (about 9 years ago)
- Last Synced: 2025-04-30T07:08:54.535Z (about 1 year ago)
- Topics: html, pdf, pdfmake
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 7
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pdfmakeToHTML
==========
[](https://travis-ci.org/Astrocoders/pdfmake-to-html)
Convert pdfmake's JSON tree into a DOM tree
## Install
```
yarn add pdfmake-to-html
```
# Usage
```js
import pdfmakeToHTML from 'pdfmake-to-html'
const documentDefinition = {
table: {
body: [
[ `I'm a column`, `I'm a column` ],
]
},
}
const dom = pdfmakeToHTML(documentDefinition) // that's it!
```
Not all structures are supported until this very moment and there are a lot of specifics for my usage now (semantic UI, table renders actually to a grid).
But I intend to make it more general purpose in the near future.