MCP服务:PDF 添加文字水印,仅提供 add_text_watermark_direct
Project description
PDF 添加文字水印 MCP 服务
仅提供一个工具:add_text_watermark_direct,直接在 PDF 上叠加可选择的文字水印。
运行
uv run pdf-mcp-server
或:
$env:PYTHONPATH="src"; python -c "import pdf_mcp.server; pdf_mcp.server.main()"
工具:add_text_watermark_direct
input_path(str) 输入 PDF 文件路径output_path(str) 输出 PDF 文件路径watermark_text(str) 水印文字内容opacity(float) 不透明度 (0.0-1.0),建议 0.03-0.1 获得“若隐若现”效果font_size(int) 字体大小position(str) 位置:center,top-left,top-right,bottom-left,bottom-rightcolor_r/color_g/color_b(float) 颜色分量 (0.0-1.0)layout(str) 布局:single、corners、tile
示例
为 report.pdf 添加可选择文字水印 "机密文件",整页平铺
依赖
fastmcppymupdf(fitz)
运行
uv run pdf-mcp-server
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdf_mcp_watermark_text-0.1.4.tar.gz.
File metadata
- Download URL: pdf_mcp_watermark_text-0.1.4.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
721e22661417cc4323b8c696b846bc78619a54ee22423a6b8db344a07f141893
|
|
| MD5 |
d20c8715791e414ce0257c44974ffea0
|
|
| BLAKE2b-256 |
2ead99d908a6d4e76b39da7adc125319713dae00b034706bad3817b1b97152f5
|
File details
Details for the file pdf_mcp_watermark_text-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pdf_mcp_watermark_text-0.1.4-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c216271d558b908daa2fbf9ed155b0844060aa5c683e433c231cc971e9ca3172
|
|
| MD5 |
faf5d13272abee2d0a8a0c938e502cfa
|
|
| BLAKE2b-256 |
c453d0e8e575a8b1a3cf70838fb4b13410fb9e9b408cd9fa04eefdd77d264c00
|