Deno:
import PdfPrimer from "npm:pdfmake/build/pdfmake.js" — works natively
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import PdfPrimer from "npm:pdfmake/build/pdfmake.js" — works natively
// api/lib/pdf-invoice.ts — lazy-loaded (same pattern as api/solana.ts)
async function loadPdfMake() {
const { default: PdfPrimer } = await import("npm:pdfmake/build/pdfmake.js");
const { default: pdfFonts } = await import("npm:pdfmake/build/vfs_fonts.js");
PdfPrimer.vfs = pdfFonts.pdfMake.vfs;
return PdfPrimer;
}