faj-cli
Version:
FAJ - A powerful CLI resume builder with AI enhancement and multi-format export
68 lines • 1.62 kB
TypeScript
import { Resume } from '../../models';
/**
* Optimized PDF Generator with Font Subsetting
* Creates PDFs with only the glyphs actually used, dramatically reducing file size
* Inspired by Open-Resume's approach
*/
export declare class SubsettedPDFGenerator {
private logger;
private cacheDir;
private fontFamilies;
private themes;
constructor();
/**
* Generate PDF with automatic font subsetting
*/
generatePDF(resume: Resume, themeName?: string, fontFamily?: string): Promise<Buffer>;
/**
* Extract unique characters from resume for font subsetting
*/
private extractUniqueCharacters;
/**
* Load fonts with subsetting based on used characters
*/
private loadSubsettedFonts;
/**
* Download font from URL
*/
private downloadFont;
/**
* Simple hash function for cache keys
*/
private hashString;
/**
* Draw gradient background
*/
private drawGradientBackground;
/**
* Draw section header with underline
*/
private drawSection;
/**
* Wrap text to fit within width
*/
private wrapText;
/**
* Group skills by category
*/
private groupSkills;
/**
* Get category label
*/
private getCategoryLabel;
/**
* Get available fonts list
*/
getAvailableFonts(): {
name: string;
displayName: string;
}[];
/**
* Get available themes list
*/
getAvailableThemes(): {
name: string;
description: string;
}[];
}
//# sourceMappingURL=SubsettedPDFGenerator.d.ts.map