返回顶部
c

convert-to-pdf 转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
安全检测
已通过
1,395
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

convert-to-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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部