commit 1b91c4048892ee76ab599dceb1f8e65ecbf20c79 Author: zlei9 Date: Sun Mar 29 14:38:04 2026 +0800 Initial commit with translated description diff --git a/SKILL.md b/SKILL.md new file mode 100644 index 0000000..22dcda8 --- /dev/null +++ b/SKILL.md @@ -0,0 +1,42 @@ +--- +name: pdf-extract +description: "从PDF文件中提取文本以供LLM处理。" +metadata: + { + "openclaw": + { + "emoji": "📄", + "requires": { "bins": ["pdftotext"] }, + "install": + [ + { + "id": "dnf", + "kind": "dnf", + "package": "poppler-utils", + "bins": ["pdftotext"], + "label": "Install via dnf", + }, + ], + }, + } +--- + +# PDF Extract + +Extract text from PDF files for LLM processing. Uses `pdftotext` from the poppler-utils package to convert PDF documents into plain text. + +## Commands + +```bash +# Extract all text from a PDF +pdf-extract "document.pdf" + +# Extract text from specific pages +pdf-extract "document.pdf" --pages 1-5 +``` + +## Install + +```bash +sudo dnf install poppler-utils +``` diff --git a/_meta.json b/_meta.json new file mode 100644 index 0000000..f0faea2 --- /dev/null +++ b/_meta.json @@ -0,0 +1,6 @@ +{ + "ownerId": "kn7d9tgyz5fxw3t93bz27t97zn7zxtqc", + "slug": "pdf-extract", + "version": "1.0.0", + "publishedAt": 1770135673109 +} \ No newline at end of file