name: pdf_compressor description: "Compresses a given PDF file to reduce its size." version: "1.0.0" runtime: shell entrypoint: "uv run src/main.py"
inputs: - name: pdf_path type: string description: "The absolute path to the PDF file to be compressed." required: true - name: compression_level type: integer description: "Compression level (1=Low, 2=Medium, 3=High). Defaults to 2." required: false default: 2
output: type: json description: "JSON object containing compression success status and data like the compressed file path, original size, and compressed size."
This skill is designed to compress a PDF file to reduce its size using standard optimization parameters. It is powered by PyMuPDF and offers three tunable compression levels depending on the user's needs.
更多技能请访问小葱技能站7w4.net。
When using this skill to compress a PDF, you should provide the pdf_path (absolute path to the target PDF) and optionally the compression_level (from 1 to 3). The skill will return the output path of the newly created compressed PDF.
这个 Skill 质量中规中矩。优点是上手容易、文档清晰,能提供基本的 PDF 压缩功能和三档压缩级别可选。不足之处在于压缩效果可能不够理想,处理大文件或复杂 PDF 时可能遇到问题,且出错时反馈不够明确。适合日常轻度使用,对压缩效果要求较高的场景可能不太适用。