smp-serverless-utils
Version:
Utilities for working with GCP Storage, file handling, and PDF/SVG conversions
17 lines (16 loc) • 399 B
TypeScript
export interface HtmlToPDFParams {
html: string;
fileName: string;
margin?: {
top?: string;
right?: string;
bottom?: string;
left?: string;
};
htmlHeader: string;
htmlFooter: string;
}
export declare const htmlToPdf: ({ html, fileName, margin, htmlHeader, htmlFooter, }: HtmlToPDFParams) => Promise<{
message: string;
url: string;
}>;