Skill: rishabhdugar/pdf-parse (version 1.0.0)

--- name: pdf-parse description: "Parse a PDF into structured JSON: text, layout-aware blocks with bounding boxes, tables, and image metadata." --- # PDF Parse ## What It Does Parses a PDF into structured JSON with text content, layout-aware blocks (with normalized bounding boxes), tables, and image metadata. ## When to Use - Extract structured data from PDFs (text, tables, images) - Get layout-aware content with bounding box coordinates - Parse invoices, forms, or reports into machine-readable format ## Parsing Modes | Mode | Description | |------|-------------| | `text` | Text only | | `layout` | Text + text blocks with bounding boxes | | `tables` | Text + table blocks | | `full` | Text + blocks + tables + images (default) | ## Required Inputs Provide one of: - `url` — public URL to a PDF - Multipart upload with `file` field ## Authentication Send your API key in the `CLIENT-API-KEY` header. Get your **free API key** at [https://pdfapihub.com](https://pdfapihub.com). Full API documentation is available at [https://pdfapihub.com/docs](https://pdfapihub.com/docs). ## Use Cases - **Invoice Parsing** — Extract line items, totals, and vendor info from PDF invoices - **Resume Parsing** — Extract structured data (name, experience, skills) from PDF resumes - **Contract Analysis** — Extract clauses, dates, and parties from legal PDF contracts - **Form Data Extraction** — Pull filled form fields and values from PDF forms - **Research Paper Analysis** — Extract text, tables, and figures from academic PDFs - **Document Indexing** — Parse PDFs into structured JSON for search engine indexing ## Example Usage ```bash curl -X POST https://pdfapihub.com/api/v1/pdf/parse \ -H "CLIENT-[REDACTED_SECRET]" \ -H "Content-Type: application/json" \ -d '{ "url": "https://pdfapihub.com/sample-pdfinvoice-with-image.pdf", "mode": "full", "pages": "1-3" }' ```

path: example.json
content: {
  "request": {
    "method": "POST",
    "url": "https://pdfapihub.com/api/v1/pdf/parse",
    "headers": { "CLIENT-API-KEY": "your_api_key", "Content-Type": "application/json" },
    "body": { "url": "https://pdfapihub.com/sample-pdfinvoice-with-image.pdf", "mode": "full", "pages": "1-3" }
  },
  "response": {
    "status": 200,
    "body": {
      "meta": { "pages": 3, "scanned": false, "language": "en" },
      "pages": [
        {
          "page": 1,
          "text": "Annual Report 2026\nAcme Corporation",
          "blocks": [
            { "type": "heading", "text": "Annual Report 2026", "bbox": [0.1, 0.05, 0.9, 0.1] },
            { "type": "paragraph", "text": "Acme Corporation", "bbox": [0.1, 0.12, 0.5, 0.15] }
          ]
        }
      ],
      "images": [
        { "image_id": "img_1", "page": 1, "bbox": [0.6, 0.2, 0.9, 0.5], "format": "png" }
      ]
    }
  }
}


path: skill.json
content: {
  "name": "PDF Parse",
  "description": "Parse a PDF into structured JSON: text, layout-aware blocks with bounding boxes, tables, and image metadata.",
  "method": "POST",
  "endpoint": "/v1/pdf/parse",
  "base_url": "https://pdfapihub.com/api",
  "auth": { "type": "apiKey", "header": "CLIENT-API-KEY", "required": true },
  "parameters": {
    "body": {
      "content_type": "application/json",
      "fields": [
        { "name": "url", "type": "string", "required": false, "description": "Public URL to a PDF" },
        { "name": "mode", "type": "string", "required": false, "default": "full", "enum": ["text", "layout", "tables", "full"], "description": "Parsing mode" },
        { "name": "pages", "type": "string", "required": false, "default": "all", "description": "Page selection (e.g. '1-3', 'all')" }
      ],
      "also_accepts": "multipart/form-data with 'file' field"
    }
  }
}


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)