CtrlK
BlogDocsLog inGet started
Tessl Logo

excel2pdf

将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。

70

Quality

85%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

excel2pdf Skill

将 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_pathstr-Excel 文件的路径
pdf_pathstr-转换后生成的 PDF 文件的路径
sheet_idint0工作表的索引(默认第一个工作表)

返回值

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

Repository
CoderWanFeng/python-office
Last updated
First committed

Is this your skill?

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.