dom-to-vector-pdf
Version:
Convert DOM elements to vector PDFs using jsPDF, dom-to-svg and svg2pdf.js
38 lines • 843 B
TypeScript
import { jsPDF } from 'jspdf';
import type { FontRegisterOptions } from './types';
/**
* Font manager
*/
export declare class FontManager {
private static instance;
private registeredFonts;
private pdfInstance?;
private callbackList;
private fontId;
private constructor();
/**
* Get font ID
*/
getFontId(): string;
/**
* Get font manager singleton
*/
static getInstance(): FontManager;
/**
* Set PDF instance
*/
setPdfInstance(pdf: jsPDF | null): void;
/**
* Register font
*/
registerFont(options: FontRegisterOptions): void;
/**
* Batch register fonts
*/
registerFonts(options: FontRegisterOptions[]): void;
/**
* Add font to PDF instance
*/
private addFontToPdf;
}
//# sourceMappingURL=font-manager.d.ts.map