将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。
70
85%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
将 Excel 文件的指定工作表转换为 PDF 格式
将 Excel 文件的指定工作表转换为 PDF 文件。
office/skills/excel/excel2pdf/
from skills.excel import excel2pdf
excel2pdf(
excel_path='./data.xlsx',
pdf_path='./data.pdf',
sheet_id=0
)| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
excel_path | str | 是 | - | Excel 文件的路径 |
pdf_path | str | 是 | - | 转换后生成的 PDF 文件的路径 |
sheet_id | int | 否 | 0 | 工作表的索引(默认第一个工作表) |
None
from skills.excel import excel2pdf
excel2pdf(excel_path='./report.xlsx', pdf_path='./report.pdf', sheet_id=0)https://www.bilibili.com/video/BV1A84y1N7or/
office.api.excel.excel2pdf
dd6fe56
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.