ai-pdf-builderAI-powered PDF generator for legal docs, pitch decks, and reports. SAFEs, NDAs, term sheets, whitepapers. npx ai-pdf-builder. Works with Claude, Cursor, GPT, Copilot.
Install via ClawdBot CLI:
clawdbot install NextFrontierBuilds/ai-pdf-builderYC-style docs in seconds. AI-powered PDF generator for legal documents, pitch decks, and professional reports.
Generate SAFEs, NDAs, term sheets, whitepapers, and memos from simple prompts. Works with Claude, GPT, Cursor, and AI coding agents. 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)
# 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:
export ANTHROPIC_API_KEY="your-key-here"
npx ai-pdf-builder check
# 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
# 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"
# 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
# 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
import { 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 |
const 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 "" - Generate new document from promptenhance - Improve existing contentsummarize - Create executive summary--company "Name" - Add company branding to any commandBuilt by @NextXFrontier & @DLhugly
Generated Mar 1, 2026
A fintech startup needs to quickly generate professional term sheets and SAFE agreements for investor pitches. Using the AI PDF Builder, they can input deal terms via prompts to produce legally formatted documents, saving time on manual drafting and ensuring consistency across funding rounds.
A law firm handling multiple clients requires automated generation of NDAs and legal agreements. The tool allows them to input client-specific details through CLI or code, streamlining document creation, reducing errors, and freeing up lawyer time for higher-value tasks.
A healthcare company needs to produce quarterly reports and whitepapers on AI applications in medicine. Using the AI content generation feature, they can draft technical documents from prompts, enhance existing drafts, and brand them with company details for stakeholder distribution.
A venture capital firm requires pitch decks and memos for portfolio companies. The tool enables them to generate investor-ready documents from simple descriptions, summarize lengthy reports into executive PDFs, and apply custom branding to maintain a professional image across communications.
A management consultancy needs to create tailored business proposals for clients. They use the AI PDF Builder to draft proposals from prompts, enhance content with industry-specific insights, and output polished PDFs with company branding, speeding up client onboarding.
Offer a free tier with basic PDF generation via local installation (using pandoc) to attract users, and a paid cloud API tier for advanced features like AI content generation and enhanced branding. Revenue comes from subscription plans based on usage limits and premium support.
Sell customized licenses to large organizations such as law firms or corporations, providing dedicated support, custom integrations, and bulk document processing. This model targets high-volume users who need scalable, secure solutions for legal and business documentation.
Monetize through npm package sales, developer tools, and partnerships with AI platforms like Claude or Cursor. Offer paid add-ons for advanced templates, analytics, and integration services, leveraging the open-source community to drive adoption and upsell premium features.
๐ฌ Integration Tip
For quick setup, use the npx command to test generation without installation; set the ANTHROPIC_API_KEY environment variable to enable AI features for automated content creation.
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.
็จ MinerU API ่งฃๆ PDF/Word/PPT/ๅพ็ไธบ Markdown๏ผๆฏๆๅ ฌๅผใ่กจๆ ผใOCRใ้็จไบ่ฎบๆ่งฃๆใๆๆกฃๆๅใ
Generate hand-drawn style diagrams, flowcharts, and architecture diagrams as PNG images from Excalidraw JSON
The awesome PPT format generation tool provided by baidu.