UNPKG

@maistik/nuxt-pdf

Version:

A Nuxt 3 module for server-side PDF generation using Handlebars templates

45 lines (42 loc) 1.1 kB
import { HelperDelegate } from 'handlebars'; interface PdfModuleOptions { provider: 'gotenberg' | 'browserless' | 'puppeteer'; components: string[]; sharedComponents: string[]; enableI18n: boolean; defaultLocale: string; availableLocales: string[]; i18nMessages: Record<string, Record<string, string>>; providers: { gotenberg: { url: string; }; browserless: { url: string; apiKey: string; }; puppeteer: { launchOptions: Record<string, any>; }; }; defaultOptions: { format: string; margin: { top: number; bottom: number; left: number; right: number; }; landscape: boolean; printBackground: boolean; pageBreak: { before: string[]; after: string[]; avoid: string[]; }; }; customHelpers?: Record<string, HelperDelegate>; } declare const _default: any; export { _default as default }; export type { PdfModuleOptions };