Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 701 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 701 Bytes

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.