闲社服务运行正常AI智能体自动化平台
c

转PDF

技能标识:convert-to-pdf

Convert one or multiple documents to PDF by uploading them to Cross-Service-Solutions, polling until completion, then returning download URL(s) for the converted PDF(s) (or a ZIP if multiple).

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

转PDF

convert-to-pdf

目的

此技能通过以下步骤将一个或多个文档转换为PDF: 1) 接收用户提供的一个或多个输入文件, 2) 将文件上传至Solutions API的转换端点, 3) 轮询任务状态直至完成, 4) 返回生成文件的下载链接。 如果转换多个文件,输出可能包含多个PDF文件和/或一个ZIP压缩包用于下载。

凭证

API需要使用API密钥作为Bearer令牌:
  • - Authorization: Bearer

用户获取API密钥的方式:

  • - https://login.cross-service-solutions.com/register
  • 或者用户可以直接提供API密钥。

规则: 切勿输出或记录API密钥。

API端点

基础URL:
  • - https://api.xss-cross-service-solutions.com/solutions/solutions

创建转换任务:

  • - POST /api/31
  • multipart/form-data 参数:

- files(文档)— 必填 — 多个文件(multiple_files)
- 您可以转换多个不同类型文件为多个PDF。
- 多个文件可以打包为ZIP文件下载。

按ID获取结果:

  • - GET /api/

任务完成后,响应包含:

  • - output.files[] 包含 { name, path },其中 path 是可下载的URL(PDF和/或ZIP)。

输入

必填

  • - 一个或多个输入文件(二进制)
  • API密钥(字符串)

可选

  • - 无

输出

返回结构化结果:
  • - job_id(数字)
  • status(字符串)
  • outputs(数组)包含每个输出文件的 { name, path }
  • 便捷字段:
- download_url(字符串)如果只有一个输出文件 - download_urls(字符串数组)所有输出文件的下载链接
  • - input_files(字符串数组)

输出示例:
json
{
job_id: 789,
status: done,
outputs: [
{ name: file1.pdf, path: https://.../file1.pdf },
{ name: file2.pdf, path: https://.../file2.pdf },
{ name: converted.zip, path: https://.../converted.zip }
],
download_urls: [
https://.../file1.pdf,
https://.../file2.pdf,
https://.../converted.zip
],
input_files: [file1.docx, file2.pptx]
}

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 convert-to-pdf-1776336443 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 convert-to-pdf-1776336443 技能

通过命令行安装

skillhub install convert-to-pdf-1776336443

下载

⬇ 下载 convert-to-pdf v1.0.0(免费)

文件大小: 5.51 KB | 发布时间: 2026-4-17 16:20

v1.0.0 最新 2026-4-17 16:20
- Initial release of the convert-to-pdf skill.
- Convert one or multiple documents to PDF using Cross-Service-Solutions API.
- Supports polling for job completion and returning download URLs for PDFs or ZIP files.
- Requires user-provided API key for authentication.
返回顶部