Skip to content

An experiment to convert pdfmake's JSON tree into a DOM tree

License

Notifications You must be signed in to change notification settings

Astrocoders/pdfmake-to-html

Repository files navigation

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.

About

An experiment to convert pdfmake's JSON tree into a DOM tree

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published