返回顶部
c

compress-pdf 压缩PDF

Compress a user-provided PDF by uploading it to Cross-Service-Solutions, polling until completion, then returning a download URL for the compressed file.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,937
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

compress-pdf

compress-pdf

目的

该技能通过以下步骤压缩PDF文件: 1) 接收用户提供的PDF文件, 2) 将其上传至Cross-Service-Solutions压缩API, 3) 轮询任务状态直至完成, 4) 返回压缩文件的下载链接。

凭证

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/29
  • multipart/form-data 参数:

- file(PDF文档)— 必填 — PDF文件
- imageQuality — 必填 — 数值0..100(默认75)
- dpi — 必填 — 数值72..300(默认144)

通过ID获取结果:

  • - GET /api/

任务完成后,响应中包含:

  • - output.files[],包含 { name, path },其中 path 为可下载的URL。

输入

必填

  • - PDF文件(二进制)
  • API密钥(字符串)

可选

  • - imageQuality(0..100),默认75
  • dpi(72..300),默认144

输出

返回结构化结果:
  • - jobid(数字)
  • status(字符串)
  • downloadurl(字符串,任务完成时)
  • file_name(字符串,可用时)
  • settings(对象)

输出示例:
json
{
job_id: 123,
status: done,
download_url: https://.../compressed.pdf,
file_name: compressed.pdf,
settings: { imageQuality: 75, dpi: 144 }
}

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 compress-pdf-1776339505 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 compress-pdf-1776339505 技能

通过命令行安装

skillhub install compress-pdf-1776339505

下载

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

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

v1.0.0 最新 2026-4-17 16:02
Initial release of compress-pdf skill:

- Accepts a user PDF file and compresses it using Cross-Service-Solutions API.
- Polls job status until compression completes.
- Returns job status, compressed file download URL, file name, and compression settings.
- Requires an API key for authentication.
- Supports optional image quality and DPI settings.

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

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

p2p_official_large
返回顶部