返回 Skill 列表
extension
分类: 开发与工程无需 API Key

document-sorting

通过将PDF和文档转换为图像、分析内容并用描述性文件名重命名来整理PDF和文档。

person作者: jakexiaohubgithub

Document Sorter Skill

Organize PDFs and documents by converting to images, analyzing content, and renaming with descriptive filenames.

Workflow

Step 1: Convert PDF to Image

pdftoppm -png -r 150 "path/to/document.pdf" /tmp/doc-NNN
  • -png: Output format
  • -r 150: Resolution (150 DPI for text)
  • Output: Creates doc-NNN-1.png, doc-NNN-2.png for multi-page

Step 2: Read and Analyze

read /tmp/doc-NNN-1.png
  • View first page for single-page docs
  • View all pages for multi-page docs

Step 3: Rename

mv "original-name.pdf" "YYYY-MM-vendor-type-subject-identifier.pdf"

Step 4: Continue with Next PDF

Repeat steps 1-3 for each document, one by one.

Naming Convention

Format: YYYY-MM-vendor-type-subject-identifier.pdf