← 返回
内容创作 Key

Ai Pdf Builder

AI-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.
AI驱动的PDF生成器,支持法律文档、融资演示及报告(如SAFE、NDA、条款清单、白皮书)。运行命令 npx ai-pdf-builder,兼容 Claude、Cursor、GPT 和 Copilot。
nextfrontierbuilds
内容创作 clawhub v1.2.3 1 版本 97310.5 Key: 需要
★ 1
Stars
📥 6,746
下载
💾 32
安装
1
版本
#latest

概述

AI PDF Builder

YC-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:

  • Whitepapers & Litepapers
  • Term Sheets
  • SAFEs & NDAs
  • Memos & Reports
  • Legal Agreements

What's New in v1.1.0

  • AI Content Generation - Generate documents from prompts using Claude
  • --company Flag - Inject company name directly via CLI
  • enhance Command - Improve existing content with AI
  • summarize Command - Generate executive summaries from documents
  • Content Sanitization - Automatic cleanup of AI-generated content

Requirements

Option 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"

Usage

Check System

npx ai-pdf-builder check

Generate via CLI

# 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

AI Content Generation (New!)

# 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"

Enhance Existing Content (New!)

# 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

Summarize Documents (New!)

# 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

Generate via Code

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.' }
);

Document Types

TypeFunctionBest For
--------------------------
whitepapergenerateWhitepaper()Technical docs, litepapers
memogenerateMemo()Executive summaries
agreementgenerateAgreement()Legal contracts
termsheetgenerateTermsheet()Investment terms
safegenerateSAFE()SAFE agreements
ndagenerateNDA()Non-disclosure agreements
reportgenerateReport()Business reports
proposalgenerateProposal()Business proposals

Custom Branding

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'
});

Agent Instructions

When a user asks to generate a PDF:

  1. Check what type of document they need (whitepaper, term sheet, memo, etc.)
  2. Determine if they want AI generation or have existing content
  3. Get the content - either from their message, a file, or use AI to generate
  4. Ask for metadata if not provided (title, author, company name)
  5. Use --company flag to inject company branding
  6. Check if Pandoc is installed: which pandoc
  7. If Pandoc missing, provide install instructions or suggest cloud API
  8. Generate the PDF using the appropriate function
  9. Send the PDF file to the user

AI Commands Quick Reference:

  • ai "" - Generate new document from prompt
  • enhance - Improve existing content
  • summarize - Create executive summary
  • --company "Name" - Add company branding to any command

Links

  • npm: https://www.npmjs.com/package/ai-pdf-builder
  • GitHub: https://github.com/NextFrontierBuilds/ai-pdf-builder

Built by @NextXFrontier & @DLhugly

版本历史

共 1 个版本

  • v1.2.3 当前
    2026-03-28 00:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,194
developer-tools

Elite Longterm Memory

nextfrontierbuilds
{"answer":"专为 Cursor、Claude、ChatGPT 和 Copilot 打造的终极 AI 记忆系统。WAL 协议 + 向量搜索 + git-notes + 云备份。永不错失上下文。完美适配 Vibe-coding。"}
★ 222 📥 61,773
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 294 📥 136,387