Files
cv/docs/design/specs/v2/pdf-resume/spec-v2-resume-future.md
T
dong.nguyen 0297c18bad feat(resume): add version stamping and bilingual EN/VN PDF support
- Add version stamp footer 'Last updated: YYYY-MM-DD' to PDF
- Implement bilingual support (English + Vietnamese) for resume PDF
  - Add Language type and *En optional fields to types
  - Add Vietnamese translations to profile, experience, projects data
  - resolveField utility for language-aware field resolution
  - Language-specific section labels (Experience/Kinh nghiệm, etc.)
  - --lang CLI arg: 'en' (default) or 'vi'
  - Output: resume.pdf (EN), resume-vi.pdf (VI)
- Update CI workflow to generate and deploy both PDF versions
- Add build:resume-all npm script
- Update UI components (Hero, DownloadResume) for language selection
- Add spec-v2-resume-future.md for deferred enhancements
- Refactor spec-v2-resume-playwright.md (condense implementation notes)
2026-10-12 14:50:17 +07:00

1.5 KiB

Specification — v2 Resume PDF (Future Enhancements)

Document: spec-v2-resume-future.md Version: 0.1.0 Parent: spec-v2-resume-playwright.md Status: Deferred — not yet implemented


Overview

This spec covers deferred enhancements for the Resume PDF generation system. All items in spec-v2-resume-playwright.md (Phase 1 + Phase 2) are fully implemented.

See spec-v2-resume-playwright.md for current implementation.


1. Version Stamping

Status: DEFERRED

Add footer "Last updated: YYYY-MM-DD" to each PDF page.

Implementation:

  • Script injects footer into HTML template: {{UPDATED_DATE}}
  • Or use JavaScript in the page to inject dynamic date:
await page.evaluate((date: string) => {
  const footer = document.createElement('div');
  footer.className = 'pdf-footer';
  footer.textContent = `Last updated: ${date}`;
  document.body.appendChild(footer);
}, new Date().toISOString().slice(0, 10));

CSS:

.pdf-footer {
  page-break-inside: avoid;
  text-align: center;
  font-size: 8pt;
  color: #999;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

2. Multiple Language Versions

Status: DEFERRED (English only)

Support PDF in English + Vietnamese. Currently English only.

Approach:

  • Duplicate template: resume-template-en.html, resume-template-vi.html
  • Script runs twice, outputting resume-en.pdf, resume-vi.pdf
  • Data modules export both languages: profile.nameEn, profile.nameVi