31 lines
863 B
Markdown
31 lines
863 B
Markdown
---
|
||
title: "Document Generation"
|
||
type: concept
|
||
tags: [office-suite, automation, documents]
|
||
last_updated: 2026-04-20
|
||
---
|
||
|
||
## Definition
|
||
Document Generation 是指通过代码、模板和数据驱动流程自动创建 PDF、PPTX、XLSX、DOCX 等专业文档的工作流,而不是依赖手工排版。
|
||
|
||
## Core Principles
|
||
- 选择正确的输出格式和工具链
|
||
- 使用样式、主题和模板保持一致性
|
||
- 将数据与版式分离,提升复用性
|
||
- 兼顾品牌一致性、可访问性和可维护性
|
||
- 在生成前明确受众、目的与交付要求
|
||
|
||
## Common Tooling
|
||
- PDF:reportlab、weasyprint、fpdf2、puppeteer
|
||
- PPTX:python-pptx、pptxgenjs
|
||
- XLSX:openpyxl、xlsxwriter、exceljs
|
||
- DOCX:python-docx、docx
|
||
|
||
## Related Concepts
|
||
- [[Claude Skills]]
|
||
- [[Prompt Engineering]]
|
||
|
||
## Related Entities
|
||
- [[Document Generator]]
|
||
- [[The Agency]]
|