Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

pdf-look-scannedPDF look scanned 搜索

Agent Skill

pdf-look-scanned 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

303

周安装

13

GitHub Stars

3

下载量

106
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:pdf-look-scanned(PDF look scanned 搜索)
来源仓库:https://github.com/vladmdgolam/agent-skills
仓库路径:skills/pdf-look-scanned
安装命令:
npx skills add https://github.com/vladmdgolam/agent-skills --skill pdf-look-scanned
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/vladmdgolam/agent-skills --skill pdf-look-scanned

简介

pdf-look-scanned 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装,需结合 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否会触发联网或文件读写操作。
  • 当前分类为研究检索,暂无更多功能说明。

SKILL.md

PDF Look Scanned

Make PDFs look like physical scans with optional signature replacement.

Dependencies

pip3 install pillow pdf2image img2pdf numpy

Also requires poppler (provides pdftoppm):

  • macOS: brew install poppler
  • Ubuntu/Debian: apt install poppler-utils
  • Fedora/RHEL: dnf install poppler-utils
  • Arch: pacman -S poppler
  • Windows: conda install -c conda-forge poppler or download from poppler releases

Quick Start

Run scripts/make_scanned.py for the core functionality. Read the script's --help for all options.

Simple scan effect

python3 scripts/make_scanned.py document.pdf

Adjust scan quality

Lower DPI and quality = grittier, more realistic cheap-scanner look:

python3 scripts/make_scanned.py document.pdf --dpi 150 --quality 75 --noise 7

Higher DPI = cleaner scan, larger file:

python3 scripts/make_scanned.py document.pdf --dpi 300 --quality 92

Signature Replacement

Finding signature coordinates

Before replacing signatures, determine crop and placement coordinates. All coordinates are fractions of page dimensions (0.0-1.0).

  1. Convert the source PDF to images and visually inspect to find the signature region
  2. Iteratively crop to isolate just the signature ink (no text, no table lines)
  3. On the target PDF, find the area to clear (old digital signature) and where to paste

Use this Python snippet to explore coordinates interactively:

from pdf2image import convert_from_path
from PIL import Image

pages = convert_from_path("document.pdf", dpi=200)
page = pages[0]  # 0-indexed
w, h = page.size

# Crop a region and save for inspection
crop = page.crop((int(w*0.5), int(h*0.4), int(w*0.8), int(h*0.6)))
import tempfile, os
crop.save(os.path.join(tempfile.gettempdir(), "crop_test.png"))

Replace one signature

python3 scripts/make_scanned.py contract.pdf \
  --sig-pdf signatures.pdf \
  --sig-page 1 --sig-crop 0.41,0.33,0.62,0.42 \
  --sig-target 25 --sig-clear 0.61,0.41,0.85,0.52 --sig-place 0.62,0.415

Replace multiple different signatures

Each set of --sig-page, --sig-crop, --sig-target, --sig-clear, --sig-place adds one replacement. They are matched positionally:

python3 scripts/make_scanned.py contract.pdf \
  --sig-pdf signatures.pdf \
  --sig-page 1 --sig-crop 0.41,0.33,0.62,0.42 \
  --sig-target 25 --sig-clear 0.61,0.41,0.85,0.52 --sig-place 0.62,0.415 \
  --sig-page 2 --sig-crop 0.40,0.335,0.62,0.39 \
  --sig-target 27 --sig-clear 0.61,0.635,0.85,0.72 --sig-place 0.60,0.655

Signature parameters

ParameterDescription
--sig-pdfSource PDF containing real signatures
--sig-page NPage number in source PDF (1-indexed)
--sig-crop L,T,R,BCrop box to extract signature (fractions)
--sig-target NTarget page to replace signature on (1-indexed)
--sig-clear L,T,R,BArea to white-out old signature (fractions)
--sig-place X,YTop-left position to paste new signature (fractions)
--sig-size FSignature width as fraction of page width (default: 0.11)
--sig-dpi NDPI for rendering source signature PDF (default: 350)

Scan effect parameters

ParameterDefaultEffect
--dpi200Render resolution. Lower = grittier
--quality85JPEG compression. Lower = more artifacts
--noise5.0Gaussian noise stddev. Higher = noisier
--blur0.6Gaussian blur radius. Higher = softer
--rotation0.7Max rotation in degrees
--contrast-min0.88Min contrast (lower = more washed out)
--contrast-max0.95Max contrast

Workflow for signature replacement

When the user provides a PDF and a separate signature source:

  1. Check dependencies are installed (pillow, pdf2image, img2pdf, numpy, poppler)
  2. Examine the source signature PDF — convert to images, identify which pages have signatures
  3. Extract signatures — iteratively crop to isolate the ink, verify no text bleeds in
  4. Examine the target PDF — find pages with digital signatures, note the "Подпись:" or "Signature:" label positions
  5. Determine coordinates — clear area must cover old signature without eating into labels; place position should be right after the label
  6. Run the script with all parameters
  7. Verify output — check signature pages visually, adjust coordinates if needed
  8. Check metadata — run exiftool on the output to ensure no software traces remain

Common pitfalls:

  • Crop box too tight: signature strokes get clipped on edges
  • Clear area too wide: eats into "Подпись:"/"Signature:" labels or surrounding text
  • Signature too large/small: adjust --sig-size (0.11 is typical for contracts)
  • Source PDF is a phone photo: use higher --sig-dpi (350+) and higher ink threshold

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.48%
按下载量换算40

Claude

29.45%
按下载量换算31

Cursor

19.11%
按下载量换算20

Gemini CLI

9.84%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

未通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills