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 CLIenhance Command - Improve existing content with AIsummarize Command - Generate executive summaries from documents- Content Sanitization - Automatic cleanup of AI-generated content
Requirements
Option A: Local Generation (Free, Unlimited)
CODEBLOCK0
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:
CODEBLOCK1
Usage
Check System
CODEBLOCK2
Generate via CLI
CODEBLOCK3
AI Content Generation (New!)
CODEBLOCK4
Enhance Existing Content (New!)
CODEBLOCK5
Summarize Documents (New!)
CODEBLOCK6
Generate via Code
CODEBLOCK7
Document Types
| Type | Function | Best For |
|---|
| INLINECODE3 | INLINECODE4 | Technical docs, litepapers |
| INLINECODE5 |
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 |
Custom Branding
CODEBLOCK8
Agent Instructions
When a user asks to generate a PDF:
- 1. Check what type of document they need (whitepaper, term sheet, memo, etc.)
- Determine if they want AI generation or have existing content
- Get the content - either from their message, a file, or use AI to generate
- Ask for metadata if not provided (title, author, company name)
- Use
--company flag to inject company branding - Check if Pandoc is installed: INLINECODE20
- If Pandoc missing, provide install instructions or suggest cloud API
- Generate the PDF using the appropriate function
- Send the PDF file to the user
AI Commands Quick Reference:
- -
ai <type> "<prompt>" - Generate new document from prompt - INLINECODE22 - Improve existing content
- INLINECODE23 - Create executive summary
- INLINECODE24 - 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
AI PDF Builder
秒级生成YC风格文档。 基于AI的PDF生成器,适用于法律文件、融资演示文稿和专业报告。
通过简单提示即可生成SAFE协议、保密协议、条款清单、白皮书和备忘录。兼容Claude、GPT、Cursor及AI编程代理。完美适用于:
- - 白皮书与精简版白皮书
- 条款清单
- SAFE协议与保密协议
- 备忘录与报告
- 法律协议
v1.1.0 新特性
- - AI内容生成 - 通过Claude根据提示生成文档
- --company 标志 - 通过CLI直接注入公司名称
- enhance 命令 - 使用AI改进现有内容
- summarize 命令 - 从文档生成执行摘要
- 内容净化 - 自动清理AI生成内容
系统要求
选项A:本地生成(免费,无限制)
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
选项B:云API(即将推出)
无需安装。在 ai-pdf-builder.com 获取API密钥
AI功能要求:
设置您的Anthropic API密钥:
bash
export ANTHROPICAPIKEY=your-key-here
使用方法
检查系统
bash
npx ai-pdf-builder check
通过CLI生成
bash
从Markdown文件生成
npx ai-pdf-builder generate whitepaper ./content.md -o output.pdf
带公司名称
npx ai-pdf-builder generate whitepaper ./content.md -o output.pdf --company Acme Corp
文档类型:whitepaper, memo, agreement, termsheet, safe, nda, report, proposal
AI内容生成(新功能!)
bash
根据提示生成白皮书
npx ai-pdf-builder ai whitepaper 写一篇关于去中心化身份的白皮书 -o identity.pdf
带公司品牌生成
npx ai-pdf-builder ai whitepaper AI在医疗保健中的应用 -o healthcare.pdf --company HealthTech Inc
生成其他文档类型
npx ai-pdf-builder ai termsheet 金融科技初创公司A轮融资 -o termsheet.pdf
npx ai-pdf-builder ai memo Q4战略更新 -o memo.pdf --company TechCorp
增强现有内容(新功能!)
bash
改进和扩展现有Markdown
npx ai-pdf-builder enhance ./draft.md -o enhanced.md
增强并一步转换为PDF
npx ai-pdf-builder enhance ./draft.md -o enhanced.pdf --pdf
文档摘要(新功能!)
bash
生成执行摘要
npx ai-pdf-builder summarize ./long-document.md -o summary.md
以PDF格式输出摘要
npx ai-pdf-builder summarize ./report.pdf -o summary.pdf --pdf
通过代码生成
typescript
import { generateWhitepaper, generateTermsheet, generateSAFE, aiGenerate, enhance, summarize } from ai-pdf-builder;
// AI生成白皮书
const aiResult = await aiGenerate(whitepaper,
写一篇关于区块链可扩展性解决方案的文章,
{ company: ScaleChain Labs }
);
// 从内容生成白皮书
const result = await generateWhitepaper(
# 我的白皮书\n\n此处为内容...,
{ title: 项目名称, author: 您的姓名, version: v1.0, company: Acme Corp }
);
if (result.success) {
fs.writeFileSync(whitepaper.pdf, result.buffer);
}
// 增强现有内容
const enhanced = await enhance(existingMarkdown);
// 文档摘要
const summary = await summarize(longDocument);
// 带公司信息的条款清单
const termsheet = await generateTermsheet(
# 种子轮条款清单\n\n## 投资金额\n\n$500,000...,
{ title: 种子轮, subtitle: 您的公司名称, company: Investor LLC }
);
// SAFE协议
const safe = await generateSAFE(
# 未来股权简单协议\n\n...,
{ title: SAFE协议, subtitle: 您的公司名称 }
);
文档类型
| 类型 | 函数 | 最佳用途 |
|---|
| whitepaper | generateWhitepaper() | 技术文档、精简版白皮书 |
| memo |
generateMemo() | 执行摘要 |
| agreement | generateAgreement() | 法律合同 |
| termsheet | generateTermsheet() | 投资条款 |
| safe | generateSAFE() | SAFE协议 |
| nda | generateNDA() | 保密协议 |
| report | generateReport() | 商业报告 |
| proposal | generateProposal() | 商业提案 |
自定义品牌
typescript
const result = await generateWhitepaper(content, metadata, {
customColors: {
primary: #E85D04, // 信号橙
secondary: #14B8A6, // 协调青绿
accent: #0D0D0D // 前沿深黑
},
fontSize: 11,
margin: 1in,
paperSize: letter
});
代理指令
当用户要求生成PDF时:
- 1. 检查他们需要的文档类型(白皮书、条款清单、备忘录等)
- 确定他们是否需要AI生成或已有现有内容
- 获取内容 - 来自他们的消息、文件或使用AI生成
- 如果未提供元数据则询问(标题、作者、公司名称)
- 使用--company标志注入公司品牌
- 检查是否安装了Pandoc:which pandoc
- 如果缺少Pandoc,提供安装说明或建议使用云API
- 使用相应函数生成PDF
- 将PDF文件发送给用户
AI命令快速参考:
- - ai <类型> <提示> - 根据提示生成新文档
- enhance <文件> - 改进现有内容
- summarize <文件> - 创建执行摘要
- --company 名称 - 为任何命令添加公司品牌
链接
- - npm:https://www.npmjs.com/package/ai-pdf-builder
- GitHub:https://github.com/NextFrontierBuilds/ai-pdf-builder
由
@NextXFrontier 和
@DLhugly 构建