简介
通过 Solutions API 为 PDF 添加文本水印,支持单文件或批量处理,返回带水印的 PDF 或 ZIP 下载链接。
原始描述
Add a text watermark to one or multiple PDFs by uploading them to the Solutions API, polling until completion, then returning download URL(s) for the watermarked PDF(s) (or a ZIP if multiple).
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
核心功能
add-watermark-to-pdf 是一款 PDF 文档处理技能,允许用户通过第三方 Solutions API 为单个或多个 PDF 文件批量添加文本水印。该技能采用异步任务模式:用户上传 PDF 文件并指定水印文本后,技能会将文件发送至 https://api.xss-cross-service-solutions.com 创建水印处理任务,随后通过轮询机制监控任务状态直至完成,最终返回包含水印的 PDF 文件下载链接。若处理多个文件,输出可能包含独立 PDF 或打包为 ZIP 格式。
显著优点
- 批量处理能力:原生支持多文件同时上传与处理,适合文档管理、归档等批量场景
- 零本地依赖:计算密集型操作完全 offload 至云端 API,降低客户端资源消耗
- 标准化输出:统一返回结构化 JSON,包含
job_id、status、outputs等字段,便于后续自动化处理 - 便利下载字段:智能识别单/多输出场景,提供
download_url(单文件)或download_urls(多文件)快捷访问
潜在局限与风险
- 第三方服务依赖:核心功能完全依赖 Cross-Service-Solutions 的外部 API,存在服务可用性、响应延迟及潜在下线风险
- 数据隐私外泄:用户文档必须上传至第三方服务器处理,敏感 PDF 内容存在泄露风险,不符合高保密场景需求
- API 密钥管理:需用户提供 Bearer Token,若密钥管理不当存在滥用风险;技能虽禁止回显密钥,但仍依赖用户安全保管
- 功能单一性:仅支持文本水印,无法配置字体、透明度、位置、旋转角度等高级水印属性
- 网络与超时风险:轮询机制可能因网络波动或任务排队导致长时间等待,需合理设置超时策略
适用人群
- 需要快速为合同、报告等标准文档添加"草稿""机密"等简单标识的普通办公用户
- 文档量中等、对水印样式无特殊要求的自动化工作流开发者
- 已在使用 Cross-Service-Solutions 生态、希望集成 PDF 处理能力的技术团队
安全建议
敏感文档建议优先使用本地水印工具(如 qpdf、pdftk 或 Python 库);若必须使用本技能,应确保 API 通信采用 HTTPS,并在任务完成后及时清理云端临时文件。
技能正文
name: add-watermark-to-pdf description: Add a text watermark to one or multiple PDFs by uploading them to the Solutions API, polling until completion, then returning download URL(s) for the watermarked PDF(s) (or a ZIP if multiple). license: MIT compatibility: agentskills: ">=0.1.0" metadata: category: document-processing tags: - pdf - watermark - batch - cross-service-solutions provider: Cross-Service-Solutions (Solutions API) allowed-tools:
- http
- files
add-watermark-to-pdf
Purpose
This skill adds a text watermark to one or multiple PDFs by:
- accepting one or multiple PDF files from the user,
- accepting a watermark text string,
- uploading them to the Solutions API,
- polling the job status until it is finished,
- returning download URL(s) for the resulting file(s). If multiple PDFs are processed, the output may include multiple PDFs and/or a ZIP for download.
Credentials
The API requires an API key used as a Bearer token:
Authorization: Bearer <API_KEY>
How the user gets an API key:
- https://login.cross-service-solutions.com/register
- Or the user can provide an API key directly.
Rule: never echo or log the API key.
API endpoints
Base URL:
https://api.xss-cross-service-solutions.com/solutions/solutions
Create watermark job:
POST /api/61multipart/form-dataparameters:files— required — multiple PDF files (multiple_files)text— required — string (watermark text)
Get result by ID:
GET /api/<ID>
When done, the response contains:
output.files[]with{ name, path }wherepathis a downloadable URL (PDFs and/or ZIP).
Inputs
Required
- One or more PDF files (binary)
- Watermark text (
text, string) - API key (string)
Optional
- None
Output
Return a structured result:
job_id(number)status(string)outputs(array) containing{ name, path }for each output file- Convenience fields:
download_url(string) if exactly one output existsdownload_urls(array of strings) for all outputs
input_files(array of strings)watermark_text(string) — returned only if safe; do not return if user considers it sensitive
Example output:
{
"job_id": 6101,
"status": "done",
"outputs": [
{ "name": "watermarked.pdf", "path": "https://.../watermarked.pdf" }
],
"download_url": "https://.../watermarked.pdf",
"download_urls": ["https://.../watermarked.pdf"],
"input_files": ["input.pdf"]
}
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。