分类

PDF 灰度转换

将彩色PDF转换为灰度或黑白输出,适合黑白打印与减小体积

使用 Ghostscript 将页面色彩统一转换为灰度/黑白风格。

示例结果

2 个示例

彩色PDF转灰度

将彩色PDF转换为灰度打印版本

pdf-grayscale-converter-example1.pdf 查看文件
查看输入参数
{ "sourceFile": "/public/samples/pdf/pdf-2026-02-19-source-4pages.pdf", "mode": "grayscale", "quality": "printer" }

PDF转黑白

生成高对比度黑白打印输出

pdf-grayscale-converter-example2.pdf 查看文件
查看输入参数
{ "sourceFile": "/public/samples/pdf/pdf-2026-02-19-source-4pages.pdf", "mode": "blackwhite", "quality": "screen" }

Click to upload file or drag and drop file here

Maximum file size: 500MB Supported formats: application/pdf

API 文档

请求端点

POST /zh/api/tools/pdf-grayscale-converter

请求参数

参数名 类型 必填 描述
sourceFile file (需要先上传) -
mode select -
quality select -

文件类型参数需要先通过 POST /upload/pdf-grayscale-converter 上传获取 filePath,然后将 filePath 传递给对应的文件字段。

响应格式

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
文件: 文件

AI MCP 文档

将此工具添加到您的 MCP 服务器配置中:

{
  "mcpServers": {
    "elysiatools-pdf-grayscale-converter": {
      "name": "pdf-grayscale-converter",
      "description": "将彩色PDF转换为灰度或黑白输出,适合黑白打印与减小体积",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-grayscale-converter",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。

支持 URL 文件链接或 Base64 编码作为文件参数。

如果遇见问题,请联系我们:[email protected]