{
  "schemaVersion": "1.0",
  "item": {
    "slug": "pdf-tools",
    "name": "PDF Tools",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/cmpdchtr/pdf-tools",
    "canonicalUrl": "https://clawhub.ai/cmpdchtr/pdf-tools",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/pdf-tools",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pdf-tools",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "references/libraries.md",
      "scripts/edit_text.py",
      "scripts/extract_text.py",
      "scripts/merge_pdfs.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/pdf-tools"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/pdf-tools",
    "agentPageUrl": "https://openagent3.xyz/skills/pdf-tools/agent",
    "manifestUrl": "https://openagent3.xyz/skills/pdf-tools/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/pdf-tools/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "PDF Tools",
        "body": "Tools for viewing, extracting, and editing PDF files using Python libraries (pdfplumber and PyPDF2)."
      },
      {
        "title": "Quick Start",
        "body": "All scripts require dependencies:\n\npip3 install pdfplumber PyPDF2"
      },
      {
        "title": "Extract Text",
        "body": "Extract text from PDF (all pages or specific pages):\n\nscripts/extract_text.py document.pdf\nscripts/extract_text.py document.pdf -p 1 3 5\nscripts/extract_text.py document.pdf -o output.txt"
      },
      {
        "title": "Get PDF Info",
        "body": "View metadata and structure:\n\nscripts/pdf_info.py document.pdf\nscripts/pdf_info.py document.pdf -f json"
      },
      {
        "title": "Merge PDFs",
        "body": "Combine multiple PDFs into one:\n\nscripts/merge_pdfs.py file1.pdf file2.pdf file3.pdf -o merged.pdf"
      },
      {
        "title": "Split PDF",
        "body": "Split into individual pages:\n\nscripts/split_pdf.py document.pdf -o output_dir/\n\nSplit by page ranges:\n\nscripts/split_pdf.py document.pdf -o output_dir/ -m ranges -r \"1-3,5-7,10-12\""
      },
      {
        "title": "Rotate Pages",
        "body": "Rotate all pages or specific pages:\n\nscripts/rotate_pdf.py document.pdf -o rotated.pdf -r 90\nscripts/rotate_pdf.py document.pdf -o rotated.pdf -r 180 -p 1 3 5"
      },
      {
        "title": "Edit Text",
        "body": "Add text overlay on a page:\n\nscripts/edit_text.py document.pdf -o edited.pdf --overlay \"New Text\" --page 1 --x 100 --y 700\nscripts/edit_text.py document.pdf -o edited.pdf --overlay \"Watermark\" --page 1 --x 200 --y 400 --font-size 20\n\nReplace text (limited, works best for simple cases):\n\nscripts/edit_text.py document.pdf -o edited.pdf --replace \"Old Text\" \"New Text\"\n\nNote: PDF text editing is complex due to the format. The overlay method is more reliable than replacement."
      },
      {
        "title": "Viewing PDF Content",
        "body": "Get basic info: scripts/pdf_info.py file.pdf\nExtract text to preview: scripts/extract_text.py file.pdf -p 1\nExtract full text if needed: scripts/extract_text.py file.pdf -o content.txt"
      },
      {
        "title": "Reorganizing PDFs",
        "body": "Split into pages: scripts/split_pdf.py input.pdf -o pages/\nMerge selected pages: scripts/merge_pdfs.py pages/page_1.pdf pages/page_3.pdf -o reordered.pdf"
      },
      {
        "title": "Extracting Sections",
        "body": "Get page count: scripts/pdf_info.py document.pdf\nSplit by ranges: scripts/split_pdf.py document.pdf -o sections/ -m ranges -r \"1-5,10-15\""
      },
      {
        "title": "Advanced Usage",
        "body": "For detailed library documentation and advanced patterns, see references/libraries.md."
      },
      {
        "title": "Notes",
        "body": "Page numbers are 1-indexed in all scripts (page 1 = first page)\nText extraction works best with text-based PDFs (not scanned images)\nRotation angles: 90, 180, 270, or -90 (counterclockwise)\nAll scripts validate file existence before processing"
      }
    ],
    "body": "PDF Tools\n\nTools for viewing, extracting, and editing PDF files using Python libraries (pdfplumber and PyPDF2).\n\nQuick Start\n\nAll scripts require dependencies:\n\npip3 install pdfplumber PyPDF2\n\nCore Operations\nExtract Text\n\nExtract text from PDF (all pages or specific pages):\n\nscripts/extract_text.py document.pdf\nscripts/extract_text.py document.pdf -p 1 3 5\nscripts/extract_text.py document.pdf -o output.txt\n\nGet PDF Info\n\nView metadata and structure:\n\nscripts/pdf_info.py document.pdf\nscripts/pdf_info.py document.pdf -f json\n\nMerge PDFs\n\nCombine multiple PDFs into one:\n\nscripts/merge_pdfs.py file1.pdf file2.pdf file3.pdf -o merged.pdf\n\nSplit PDF\n\nSplit into individual pages:\n\nscripts/split_pdf.py document.pdf -o output_dir/\n\n\nSplit by page ranges:\n\nscripts/split_pdf.py document.pdf -o output_dir/ -m ranges -r \"1-3,5-7,10-12\"\n\nRotate Pages\n\nRotate all pages or specific pages:\n\nscripts/rotate_pdf.py document.pdf -o rotated.pdf -r 90\nscripts/rotate_pdf.py document.pdf -o rotated.pdf -r 180 -p 1 3 5\n\nEdit Text\n\nAdd text overlay on a page:\n\nscripts/edit_text.py document.pdf -o edited.pdf --overlay \"New Text\" --page 1 --x 100 --y 700\nscripts/edit_text.py document.pdf -o edited.pdf --overlay \"Watermark\" --page 1 --x 200 --y 400 --font-size 20\n\n\nReplace text (limited, works best for simple cases):\n\nscripts/edit_text.py document.pdf -o edited.pdf --replace \"Old Text\" \"New Text\"\n\n\nNote: PDF text editing is complex due to the format. The overlay method is more reliable than replacement.\n\nWorkflow Patterns\nViewing PDF Content\nGet basic info: scripts/pdf_info.py file.pdf\nExtract text to preview: scripts/extract_text.py file.pdf -p 1\nExtract full text if needed: scripts/extract_text.py file.pdf -o content.txt\nReorganizing PDFs\nSplit into pages: scripts/split_pdf.py input.pdf -o pages/\nMerge selected pages: scripts/merge_pdfs.py pages/page_1.pdf pages/page_3.pdf -o reordered.pdf\nExtracting Sections\nGet page count: scripts/pdf_info.py document.pdf\nSplit by ranges: scripts/split_pdf.py document.pdf -o sections/ -m ranges -r \"1-5,10-15\"\nAdvanced Usage\n\nFor detailed library documentation and advanced patterns, see references/libraries.md.\n\nNotes\nPage numbers are 1-indexed in all scripts (page 1 = first page)\nText extraction works best with text-based PDFs (not scanned images)\nRotation angles: 90, 180, 270, or -90 (counterclockwise)\nAll scripts validate file existence before processing"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/cmpdchtr/pdf-tools",
    "publisherUrl": "https://clawhub.ai/cmpdchtr/pdf-tools",
    "owner": "cmpdchtr",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/pdf-tools",
    "downloadUrl": "https://openagent3.xyz/downloads/pdf-tools",
    "agentUrl": "https://openagent3.xyz/skills/pdf-tools/agent",
    "manifestUrl": "https://openagent3.xyz/skills/pdf-tools/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/pdf-tools/agent.md"
  }
}