Problem
We need the app to parse uploaded PDF CVs so we can extract resume content (sections, text) and convert it into the app's CV format. Right now there is PR #95 that adds PDF upload support (size validation and texture?), but it does not parse PDF contents into structured CV data.
Proposed solution
Add PDF parsing after upload to extract text and structure (headings, sections, contact info, work/education entries) and map the extracted data to our CV model. Consider using a server-side library (e.g., pdf-parse, pdfjs-dist, or a lightweight OCR fallback for image PDFs) and add unit/integration tests for common resume formats. Ensure parsing runs safely (timeout, size limits) and falls back to manual input when parsing fails.
Alternatives considered
- Keep uploads as attachments and require users to fill the form manually (current behavior).
- Use a third-party parsing API (privacy and cost implications).
Additional context
Related PR: #95 (opens PDF upload support). Assigning this issue to @alexNJF who authored the PR.
Problem
We need the app to parse uploaded PDF CVs so we can extract resume content (sections, text) and convert it into the app's CV format. Right now there is PR #95 that adds PDF upload support (size validation and texture?), but it does not parse PDF contents into structured CV data.
Proposed solution
Add PDF parsing after upload to extract text and structure (headings, sections, contact info, work/education entries) and map the extracted data to our CV model. Consider using a server-side library (e.g., pdf-parse, pdfjs-dist, or a lightweight OCR fallback for image PDFs) and add unit/integration tests for common resume formats. Ensure parsing runs safely (timeout, size limits) and falls back to manual input when parsing fails.
Alternatives considered
Additional context
Related PR: #95 (opens PDF upload support). Assigning this issue to @alexNJF who authored the PR.