pdfmake-to-html

1.1.0 • Public • Published

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.

/pdfmake-to-html/

    Package Sidebar

    Install

    npm i pdfmake-to-html

    Weekly Downloads

    15

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • gabrielrubens