SuperAPI AI 工具集

business-document-generator

办公与效率

查看项目

更新于 10-15 18:31

技能介绍

用途:根据内置的高质量PDF模板,生成项目提案、商业计划与年度预算三类专业商业文档,便于分发。

主要能力:提供三种文档类型——Project Proposal(模板 assets/templates/Professional Proposal Template.pdf)、Business Plan(Comprehensive Business Plan Template.pdf)、Annual Budget(Annual Budget Plan Template.pdf)。脚本读取模板、把用户数据叠加到模板页面(主要是封面页),输出新PDF并保留原模板结构与格式。

使用方式:先明确文档类型与所需数据(公司名、客户信息、日期等);创建JSON数据文件,字段要求参考 references/document_schemas.md,完整示例见 assets/examples/ 下的 proposal_example.json、business_plan_example.json、budget_example.json。首次使用需安装依赖:pip install pypdf reportlab。然后运行:python3 scripts/generate_document.py <document_type> <data_file> --templates-dir assets/templates --output-dir <output_directory>。其中 document_type 为 proposal、business_plan 或 budget;--output-filename 可选。生成后到输出目录确认PDF。

适用场景:向客户或利益相关方提案、创业规划与投资人演示、财年预算与财务规划等。

限制:脚本当前只填充封面信息(标题、名称、日期),模板正文内容是供用户手动或借助其他PDF工具参照的专业框架;需要更多字段时须自行扩展脚本(如解析PDF表单字段、按坐标叠加文本、替换占位文本、修改 TEMPLATE_MAP)。若报导入错误,安装依赖;模板找不到时确认 --templates-dir 指向 assets/templates;生成PDF为空或缺少数据时检查JSON格式与必填字段。价格、平台支持范围等资料暂未提供。