PDF发票生成器
使用结构化明细生成带品牌的发票PDF
通过结构化数据创建专业发票。
**功能**
- Logo、开票方与客户信息
- 明细表与小计/税额/总计
- 适用于A4/Letter的打印布局
**输入**
- JSON明细
- 公司与客户信息
**输出**
- 可下载的发票PDF
API 文档
请求端点
POST /zh/api/tools/pdf-invoice-generator
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| companyName | text | 是 | - |
| companyInfo | textarea | 否 | - |
| customerName | text | 是 | - |
| customerInfo | textarea | 否 | - |
| invoiceNumber | text | 是 | - |
| invoiceDate | date | 否 | - |
| dueDate | date | 否 | - |
| currency | text | 否 | - |
| taxRate | number | 否 | - |
| lineItems | textarea | 是 | - |
| notes | textarea | 否 | - |
| logoFile | file (需要先上传) | 否 | - |
| pageSize | select | 否 | - |
文件类型参数需要先通过 POST /upload/pdf-invoice-generator 上传获取 filePath,然后将 filePath 传递给对应的文件字段。
响应格式
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
文件:
文件
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-pdf-invoice-generator": {
"name": "pdf-invoice-generator",
"description": "使用结构化明细生成带品牌的发票PDF",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-invoice-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。
支持 URL 文件链接或 Base64 编码作为文件参数。
如果遇见问题,请联系我们:[email protected]