SnapPDFSnapPDF
use case

Scheduled report delivery

Ship branded weekly reports that customers actually read.

Charts + tables + your logo + page numbers. SnapPDF assembles the whole report from parts, then watermarks and emails it.

Operations used

Example workflow

  1. 01
    Cron fires weekly
    Or triggered from a dashboard export button.
  2. 02
    Render charts to PNG
    Via your BI tool or Chart.js → canvas.
  3. 03
    SnapPDF from-images
    Wrap each PNG in an A4 page.
  4. 04
    SnapPDF merge
    Stitch with cover + summary + appendix.
  5. 05
    SnapPDF add-page-numbers
    Roman prefix, arabic body.

Code

const chartPdfs = await snap.pdf.fromImages({
  images: charts.map(c => ({ data: c.png, mime: 'image/png' })),
  pageSize: 'a4',
  fit: 'contain',
});
const full = await snap.pdf.merge({ files: [cover, summary, chartPdfs.pdf, appendix] });
const paginated = await snap.pdf.addPageNumbers({
  file: full.pdf, template: 'Page {n} of {total}', position: 'bottom-center',
});

Best for

Analytics SaaSConsulting firmsFinance (monthly reviews)

Other use cases