SnapPDFSnapPDF
use case

Automated invoice generation

Turn every sale into a signed, branded, archived PDF.

Invoicing pipelines break in ugly ways — unsigned PDFs, missing watermarks, oversized attachments that bounce off Gmail. SnapPDF handles the last mile.

Operations used

Example workflow

  1. 01
    Stripe webhook → invoice.paid
    Trigger on payment success.
  2. 02
    Generate invoice body
    Your existing HTML→PDF pipeline or template engine.
  3. 03
    SnapPDF merge
    Combine body + terms + receipt.
  4. 04
    SnapPDF watermark
    Stamp PAID across page 1.
  5. 05
    SnapPDF compress
    Drop to ~500KB.
  6. 06
    Email to customer
    Via Resend, SendGrid, or SES.

Code

// On invoice.paid webhook:
const body = await generateInvoicePdf(order);
const { pdf } = await snap.pdf.merge({ files: [body, termsPdf, receiptPdf] });
const stamped = await snap.pdf.watermark({
  file: pdf, kind: 'text', text: 'PAID', position: 'diagonal', opacity: 0.2,
});
const small = await snap.pdf.compress({ file: stamped.pdf, level: 'high' });
await resend.emails.send({ to: order.email, attachments: [{ content: small.pdf }] });

Best for

E-commerceSaaS billingFreelance operatorsAgencies

Other use cases