跳到正文
TakoAPI
返回技能列表

compress-pdf

由 crossservicesolutions 提供

Coding Agents & IDEs
1.6k下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Compress a user-provided PDF by uploading it to Cross-Service-Solutions, polling until completion, then returning.

描述

该技能的功能

Compresses PDF files using the Cross-Service-Solutions API. Uploads the file, polls for job completion, and returns a download URL for the compressed result. Supports configurable image quality and DPI settings.

Handles the full upload-poll-download cycle automatically, so users get a ready-to-use download link without manual API interaction.

何时使用

  • Shrinking large PDF reports before emailing
  • Reducing PDF size to meet upload limits on web forms
  • Compressing scanned documents for cloud storage
  • Preparing PDFs for faster sharing over slow connections
  • Batch-reducing file sizes before archiving

示例工作流

输入

User asks: 'Compress this PDF with image quality 60 and 96 DPI'

智能体
  1. 1

    Accepts the PDF file and API key from the user

  2. 2

    POSTs the file to /api/29 with imageQuality=60 and dpi=96 as multipart/form-data

  3. 3

    Polls GET /api/<job_id> until the job status indicates completion

  4. 4

    Extracts the download URL from output.files[]

输出

{"job_id": 456, "status": "done", "download_url": "https://.../compressed.pdf", "file_name": "compressed.pdf", "settings": {"imageQuality": 60, "dpi": 96}}

前置要求

  • Cross-Service-Solutions API key (sign up at https://login.cross-service-solutions.com/register)

安装

clawhub install crossservicesolutions/compress-pdf

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接