@leo56/simple-redact-skill
v0.1.5
Published
Simple Redact - CLI tool for PDF sensitive information redaction
Maintainers
Readme
@leo56/simple-redact-skill
Skill-first distribution of Simple Redact.
This npm package installs the simple-redact CLI and includes the full skill
structure (SKILL.md, SKILL.toml, references, default config, assets).
Install
npm install -g @leo56/simple-redact-skillQuick Start
mkdir -p output
# 1) Parse PDF to extract text + coordinates (offline)
simple-redact parse --input document.pdf --output output/extracted.json --parser local
# 2) Create output/sensitive.json
# See: references/WORKFLOW.md
# 3) Apply redactions
simple-redact apply --input document.pdf --output output/redacted.pdf --sensitive output/sensitive.json --parser localTextIn (Optional)
If you want better OCR and matching for complex PDFs:
Get Credentials
TextIn credentials are called x-ti-app-id and x-ti-secret-code (you will use
them as TEXTIN_APP_ID and TEXTIN_SECRET_CODE).
Per TextIn official docs, you can obtain them from the Workbench:
- Open the TextIn "功能体验" page
- Click the profile icon in the bottom-left
- Click 账号与开发者信息
- Copy
x-ti-app-idandx-ti-secret-code
Reference: https://docs.textin.com/xparse/api-key
export TEXTIN_APP_ID=YOUR_ID
export TEXTIN_SECRET_CODE=YOUR_SECRET
simple-redact parse --input document.pdf --output output/extracted.json --parser textin
simple-redact apply --input document.pdf --output output/redacted.pdf --sensitive output/sensitive.json --parser textinReferences
- Workflow:
references/WORKFLOW.md - Config:
references/CONFIG.md - Output formats:
references/OUTPUT.md - Troubleshooting:
references/TROUBLESHOOTING.md
