1.1.0 • Published 7 years ago

pdfmake-to-html v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

pdfmakeToHTML

travis

Convert pdfmake's JSON tree into a DOM tree

Install

yarn add pdfmake-to-html

Usage

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.

1.1.0

7 years ago

1.0.0

7 years ago