Skip to content

A sensible PDF renderer based on puppeteer

License

Notifications You must be signed in to change notification settings

IMA-WorldHealth/coral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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