PDF收据/票据生成器
生成热敏纸宽度的收据PDF,包含加粗标题与二维码
生成适用于热敏打印的紧凑收据。
**功能**
- 58mm/80mm热敏纸宽度
- 加粗标题与紧凑合计
- 可选二维码用于链接或订单信息
**输入**
- JSON商品列表
- 门店信息与订单元数据
**输出**
- 可直接打印的收据式PDF
API 文档
请求端点
POST /zh/api/tools/pdf-receipt-ticket
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| storeName | text | 是 | - |
| receiptTitle | text | 否 | - |
| items | textarea | 是 | - |
| currency | text | 否 | - |
| taxRate | number | 否 | - |
| paymentMethod | text | 否 | - |
| orderNumber | text | 否 | - |
| date | date | 否 | - |
| thermalWidth | select | 否 | - |
| qrData | text | 否 | - |
| footerText | textarea | 否 | - |
响应格式
{
"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-receipt-ticket": {
"name": "pdf-receipt-ticket",
"description": "生成热敏纸宽度的收据PDF,包含加粗标题与二维码",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-receipt-ticket",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。
如果遇见问题,请联系我们:[email protected]