@ima-worldhealth/coral

PDF renderer based on puppeteer than inlines assets

Usage no npm install needed!

<script type="module">
  import imaWorldhealthCoral from 'https://cdn.skypack.dev/@ima-worldhealth/coral';
</script>

README

Coral

A PDF rendering engine based on puppeteer for IMA World Health projects, with automatic inlining of assets and sensible defaults.

Usage

const render = require('@ima-worldhealth/coral');

async function toPdf(html) {
  const rendered = await render(html);
  return rendered;
}

License

MIT