Skip to content
Skillv1.0.0

pdf

Process and extract content from PDF files

by lwmxiaobei(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from lwmxiaobei/xbcode (skills/pdf/SKILL.md). Install upstream with npx skills add lwmxiaobei/xbcode --skill pdf. Copyright stays with the author.

PDF Processing

To work with PDF files:

  1. Use bash to check if pdftotext is available: which pdftotext
  2. If not installed, suggest: brew install poppler (macOS) or apt install poppler-utils (Linux)
  3. Extract text: pdftotext input.pdf - (outputs to stdout)
  4. For structured extraction: pdftotext -layout input.pdf -
  5. For page-specific extraction: pdftotext -f 1 -l 5 input.pdf - (pages 1-5)

For PDF metadata: pdfinfo input.pdf For PDF to images: pdftoppm -png input.pdf output_prefix

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/lwmxiaobei-xbcode-pdf/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

lwmxiaobei-xbcode-pdf.ocm.jsonjson
{
  "ocm": "1",
  "id": "lwmxiaobei-xbcode-pdf",
  "kind": "skill",
  "name": "pdf",
  "description": "Process and extract content from PDF files",
  "publisher": "lwmxiaobei",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "document-processing",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Process and extract content from PDF files"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/lwmxiaobei/xbcode",
      "path": "skills/pdf/SKILL.md",
      "ref": "10da0928eccc8b686bb5ae1020563244fb113403",
      "url": "https://github.com/lwmxiaobei/xbcode/blob/10da0928eccc8b686bb5ae1020563244fb113403/skills/pdf/SKILL.md",
      "key": "lwmxiaobei/xbcode/skills/pdf/SKILL.md"
    }
  },
  "instructions": "# PDF Processing\n\nTo work with PDF files:\n\n1. Use `bash` to check if `pdftotext` is available: `which pdftotext`\n2. If not installed, suggest: `brew install poppler` (macOS) or `apt install poppler-utils` (Linux)\n3. Extract text: `pdftotext input.pdf -` (outputs to stdout)\n4. For structured extraction: `pdftotext -layout input.pdf -`\n5. For page-specific extraction: `pdftotext -f 1 -l 5 input.pdf -` (pages 1-5)\n\nFor PDF metadata: `pdfinfo input.pdf`\nFor PDF to images: `pdftoppm -png input.pdf output_prefix`",
  "cost": {
    "context_tokens": 128
  }
}

Fetch it by URL: GET /api/v1/registry/lwmxiaobei-xbcode-pdf/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.