feat: add proposal for cover letter PDF conversion
Add OpenSpec proposal for converting markdown cover letters to PDF format using Swiss business letter standards. The proposal includes: - Swiss letter formatting with scrlttr2 and Swiss Norm configuration - Environment validation for Pandoc and LaTeX - Comprehensive error handling and user guidance - Support for Swiss German formatting and address window positioning This addresses step 7 "Generate PDFs" in the project workflow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Add Cover Letter PDF Conversion
|
||||
|
||||
## Why
|
||||
|
||||
The current system generates cover letters in markdown format, but many job applications require PDF submissions. This creates a gap in the workflow where users must manually convert their generated cover letters to PDF format using external tools. Adding native PDF conversion will complete the job application workflow by providing professionally formatted Swiss-style business letters ready for submission.
|
||||
|
||||
## What Changes
|
||||
|
||||
- Add new slash command `/convert-cover-letter` for converting markdown cover letters to PDF
|
||||
- Implement environment validation to check for required tools (Pandoc, LaTeX)
|
||||
- Create Swiss letter template (scrlttr2) with proper formatting for Swiss business correspondence
|
||||
- Support automatic extraction of metadata from markdown frontmatter (sender, recipient, date, subject, etc.)
|
||||
- Generate PDF output in the same directory as the markdown source
|
||||
- Provide helpful error messages and setup guidance when tools are missing
|
||||
|
||||
## Impact
|
||||
|
||||
- **Affected specs**: New capability `cover-letter-pdf-conversion`
|
||||
- **Affected code**:
|
||||
- New slash command: `src/.claude/commands/convert-cover-letter.md`
|
||||
- New LaTeX template: `src/.claude/templates/swiss-letter.tex`
|
||||
- Test environment: Will need to update test directory with new command
|
||||
- **Dependencies**: Requires Pandoc and LaTeX (texlive-latex-base, texlive-lang-german) to be installed on the user's system
|
||||
- **User workflow**: Completes step 7 "Generate PDFs" in the project workflow (see project.md:51)
|
||||
Reference in New Issue
Block a user