vue-pdf-lite
Version:
Lightweight Vue 3 composable for exporting HTML to high-quality PDFs with smart pagination.
20 lines (19 loc) • 610 B
TypeScript
export interface ExportOptions {
print?: boolean;
fontSize?: number;
fileName?: string;
download?: boolean;
fontFamily?: string;
onSuccess?: (blob: Blob) => void;
margins?: [number, number];
quality?: 'high' | 'balanced' | 'compressed';
pdfSection?: HTMLElement;
exportSection?: HTMLElement;
recursive?: boolean;
parseHTML?: boolean;
}
export declare const usePdfExport: () => {
handleExportPdf: (optionsProps: ExportOptions) => Promise<void>;
loading: import('vue').Ref<boolean, boolean>;
pdfSection: import('vue').Ref<HTMLElement, HTMLElement>;
};