Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

pdf-watermark-removerPDF watermark remover 图像

Agent Skill

pdf-watermark-remover 用于处理图像、截图、视觉识别或图片素材相关工作,适合在 OpenClaw 中需要让 Agent 分析图片、整理视觉素材或辅助图像流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,637

周安装

111

GitHub Stars

公开资料未说明

下载量

924
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pdf-watermark-remover(PDF watermark remover 图像)
来源仓库:https://github.com/ucrossmym1nd/pdf-watermark-remover
安装命令:
openclaw skills install pdf-watermark-remover
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install pdf-watermark-remover

简介

去除 PDF 中基于图像的水印如 Gamma、Canva 等标识。

  • 适用于清理非版权水印以提升文档观感。pdf-watermark-remover 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 操作前建议备份原文件以防误删重要元素。
  • 仅处理图像水印,不修改底层文本内容。
  • 效果受水印复杂度影响,部分重叠水印可能无法完全清除。

SKILL.md

name
pdf-watermark-remover
description
>

PDF Watermark Remover

Remove image-based watermarks from PDF files by surgically deleting the drawing instructions from content streams and removing XObject resource references. This produces clean results with no visible artifacts (no white/black rectangles, no color mismatches).

When to Use

  • User wants to remove a watermark from a PDF
  • User says "去水印", "remove watermark", "去掉水印", "去PDF水印"
  • PDF has a "Made with Gamma", Canva, or similar branded watermark
  • PDF has an image-based watermark in a corner or specific position

How It Works

The removal process targets the root cause — the PDF content stream instructions that draw the watermark image — rather than covering or replacing the image:

  1. Detect: Scan each page for images matching watermark characteristics (position + size)
  2. Map: Build XObject name-to-xref mapping from the page's resource dictionary
  3. Remove from content stream: Delete the q...cm.../Name Do...Q drawing instruction
  4. Remove from resources: Delete the watermark entry from the XObject dictionary
  5. Save with garbage collection to clean up orphaned objects

This approach leaves zero visual artifacts because the watermark simply never gets drawn.

Workflow

Step 1: Analyze the Watermark

Before running the script, determine the watermark's characteristics:

  1. Open the PDF and identify the watermark visually
  2. Note its position (typically bottom-right corner) and approximate size
  3. If it's a link (clickable), note the domain (e.g. gamma.app)

Step 2: Run the Removal Script

Execute scripts/remove_watermark.py:

python scripts/remove_watermark.py <input.pdf> <output.pdf> [options]

Common options:

OptionDefaultDescription
--x-threshold700X position threshold — images with x0 > this value are candidates
--min-w / --max-w100 / 200Width range for watermark detection
--min-h / --max-h20 / 50Height range for watermark detection
--remove-linksoffAlso remove link annotations
--link-domainallOnly remove links containing this domain

Gamma watermark example:

python scripts/remove_watermark.py input.pdf output.pdf --remove-links --link-domain gamma.app

Custom position watermark (e.g. top-left):

python scripts/remove_watermark.py input.pdf output.pdf --x-threshold 0 --min-w 50 --max-w 300 --min-h 10 --max-h 80

Step 3: Verify

Open the output PDF and check:

  • Watermark is completely gone (no visual remnants)
  • No color patches, rectangles, or artifacts in the watermark area
  • Page content is otherwise intact

Troubleshooting

ProblemCauseSolution
Watermark still visiblePosition/size doesn't match detection thresholdsAdjust --x-threshold, --min-w/max-w, --min-h/max-h
- Watermark still visible after adjustmentWatermark may be text-based, not image-basedThis skill only handles image watermarks; for text watermarks, use redaction or content stream editing
Other images accidentally removedDetection thresholds too broadNarrow the width/height/position ranges
Black/white rectangle appearsOld approach used image replacement instead of content stream deletionThis skill uses content stream deletion — this should not happen

Key Technical Insight

Why not overlay/replace? Three approaches that DON'T work well:

  1. White rectangle overlay — Visible on non-white backgrounds, misses rounded corners
  2. Image data replacement with 1x1 pixel — PDF renders the 1x1 pixel scaled up as a colored rectangle (black for transparent, white for white pixel)
  3. delete_image API — Only clears image data, doesn't remove the XObject reference or content stream Do instruction; renders as blank/colored rectangle

The correct approach (used by this skill): Delete the Do instruction from the content stream and the /Name xref R entry from the XObject dictionary. The watermark image data becomes an orphaned object that gets garbage-collected on save.

Requirements

  • Python 3.8+
  • pymupdf (pip install pymupdf)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

71.41%
按下载量换算660

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills