Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

compress-pdf

bởi crossservicesolutions

Coding Agents & IDEs
1.6kLượt tải do clawskills.sh công bố
1Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

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

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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[]

ĐẦU RA

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

Yêu cầu

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

Cài đặt

clawhub install crossservicesolutions/compress-pdf

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết