Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate professional PDFs from Markdown using Pandoc and LaTeX with AI-powered content generation. Creates whitepapers, term sheets, memos, agreements, SAFEs, NDAs, and more.
.claude/skills/sundial-org-ai-pdf-builder/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 729% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 57% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 129% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 120% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 64% | 0% |
Generate professional PDFs from Markdown with AI-powered content generation. Perfect for:
--company Flag - Inject company name directly via CLIenhance Command - Improve existing content with AIsummarize Command - Generate executive summaries from documentsOption A: Local Generation (Free, Unlimited)
bash# macOS brew install pandoc brew install --cask basictex sudo tlmgr install collection-fontsrecommended fancyhdr titlesec enumitem xcolor booktabs longtable geometry hyperref graphicx setspace array multirow # Linux sudo apt-get install pandoc texlive-full
Option B: Cloud API (Coming Soon) No install required. Get API key at ai-pdf-builder.com
For AI Features: Set your Anthropic API key:
bashexport ANTHROPIC_API_KEY="your-key-here"
bashnpx ai-pdf-builder check
bash# From markdown file npx ai-pdf-builder generate whitepaper ./content.md -o output.pdf # With company name npx ai-pdf-builder generate whitepaper ./content.md -o output.pdf --company "Acme Corp" # Document types: whitepaper, memo, agreement, termsheet, safe, nda, report, proposal
bash# Generate a whitepaper from a prompt npx ai-pdf-builder ai whitepaper "Write a whitepaper about decentralized identity" -o identity.pdf # Generate with company branding npx ai-pdf-builder ai whitepaper "AI in healthcare" -o healthcare.pdf --company "HealthTech Inc" # Generate other document types npx ai-pdf-builder ai termsheet "Series A for a fintech startup" -o termsheet.pdf npx ai-pdf-builder ai memo "Q4 strategy update" -o memo.pdf --company "TechCorp"
bash# Improve and expand existing markdown npx ai-pdf-builder enhance ./draft.md -o enhanced.md # Enhance and convert to PDF in one step npx ai-pdf-builder enhance ./draft.md -o enhanced.pdf --pdf
bash# Generate executive summary npx ai-pdf-builder summarize ./long-document.md -o summary.md # Summarize as PDF npx ai-pdf-builder summarize ./report.pdf -o summary.pdf --pdf
typescriptimport { generateWhitepaper, generateTermsheet, generateSAFE, aiGenerate, enhance, summarize } from 'ai-pdf-builder'; // AI-Generated Whitepaper const aiResult = await aiGenerate('whitepaper', 'Write about blockchain scalability solutions', { company: 'ScaleChain Labs' } ); // Whitepaper from content const result = await generateWhitepaper( '# My Whitepaper\n\nContent here...', { title: 'Project Name', author: 'Your Name', version: 'v1.0', company: 'Acme Corp' } ); if (result.success) { fs.writeFileSync('whitepaper.pdf', result.buffer); } // Enhance existing content const enhanced = await enhance(existingMarkdown); // Summarize a document const summary = await summarize(longDocument); // Term Sheet with company const termsheet = await generateTermsheet( '# Series Seed Term Sheet\n\n## Investment Amount\n\n$500,000...', { title: 'Series Seed', subtitle: 'Your Company Inc.', company: 'Investor LLC' } ); // SAFE const safe = await generateSAFE( '# Simple Agreement for Future Equity\n\n...', { title: 'SAFE Agreement', subtitle: 'Your Company Inc.' } );
| Type | Function | Best For | |------|----------|----------| | whitepaper | generateWhitepaper() | Technical docs, litepapers | | memo | generateMemo() | Executive summaries | | agreement | generateAgreement() | Legal contracts | | termsheet | generateTermsheet() | Investment terms | | safe | generateSAFE() | SAFE agreements | | nda | generateNDA() | Non-disclosure agreements | | report | generateReport() | Business reports | | proposal | generateProposal() | Business proposals |
typescriptconst result = await generateWhitepaper(content, metadata, { customColors: { primary: '#E85D04', // Signal Orange secondary: '#14B8A6', // Coordinate Teal accent: '#0D0D0D' // Frontier Dark }, fontSize: 11, margin: '1in', paperSize: 'letter' });
When a user asks to generate a PDF:
--company flag to inject company brandingwhich pandocAI Commands Quick Reference:
ai <type> "<prompt>" - Generate new document from promptenhance <file> - Improve existing contentsummarize <file> - Create executive summary--company "Name" - Add company branding to any commandOther measured skills in the registry, with their headline benchmark lift.