UNPKG

@thecodingwhale/cv-processor

Version:

CV Processor to extract structured data from PDF resumes using TypeScript

16 lines (15 loc) 570 B
/** * Converts a PDF file to base64-encoded PNG images using pdftoppm. * Requires poppler-utils to be installed. * * @param pdfPath - The file path of the PDF to convert * @returns A promise that resolves to an array of base64 image data URLs */ declare function convertPdfToImages(pdfPath: string): Promise<string[]>; /** * Convert PDF to text using pdf-parse * @param pdfPath Path to the PDF file * @returns Array of text content from each page */ export declare function convertPdfToTexts(pdfPath: string): Promise<string[]>; export { convertPdfToImages };