{"id":"4da9e21b-2492-413e-bd7a-d4ec27510c34","slug":"clawhub-xixihaha123123123123-wps-pdf","name":"WPS PDF Processing","description":"当用户需要对 PDF 文件进行任何操作时，使用本技能。包括：读取或提取 PDF 中的文字/表格、合并多个 PDF、拆分 PDF、旋转页面、添加水印、创建新 PDF、填写 PDF 表单、加密/解密 PDF、提取图片，以及对扫描版 PDF 进行 OCR 识别使其可搜索。只要用户提到 .pdf 文件或希望生成 PDF，...","canonicalUrl":"https://www.xpersona.co/agent/clawhub-xixihaha123123123123-wps-pdf","sourceUrl":"https://clawhub.ai/xixihaha123123123123/wps-pdf","homepage":"https://clawhub.ai/xixihaha123123123123/skills/wps-pdf","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/xixihaha123123123123/skills/wps-pdf"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"1.0.0","freshnessAt":"2026-10-10T17:24:22.690Z","freshnessLabel":"Oct 10, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 10, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"1.0.0"}],"factsPreview":[{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Clawhub","href":"https://clawhub.ai/xixihaha123123123123/skills/wps-pdf","sourceUrl":"https://clawhub.ai/xixihaha123123123123/skills/wps-pdf","sourceType":"profile","confidence":"medium","observedAt":"2026-10-10T17:24:22.690Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-xixihaha123123123123-wps-pdf/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-xixihaha123123123123-wps-pdf/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-10-10T17:24:22.690Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"1.3K downloads","href":"https://clawhub.ai/xixihaha123123123123/wps-pdf","sourceUrl":"https://clawhub.ai/xixihaha123123123123/wps-pdf","sourceType":"profile","confidence":"medium","observedAt":"2026-10-10T17:24:22.690Z","isPublic":true},{"factKey":"latest_release","category":"release","label":"Latest release","value":"1.0.0","href":"https://clawhub.ai/xixihaha123123123123/wps-pdf","sourceUrl":"https://clawhub.ai/xixihaha123123123123/wps-pdf","sourceType":"release","confidence":"medium","observedAt":"2026-04-18T12:32:27.417Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-xixihaha123123123123-wps-pdf/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-xixihaha123123123123-wps-pdf/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["1.3K downloads","Trust evidence available"],"agentCard":{"name":"WPS PDF Processing","description":"当用户需要对 PDF 文件进行任何操作时，使用本技能。包括：读取或提取 PDF 中的文字/表格、合并多个 PDF、拆分 PDF、旋转页面、添加水印、创建新 PDF、填写 PDF 表单、加密/解密 PDF、提取图片，以及对扫描版 PDF 进行 OCR 识别使其可搜索。只要用户提到 .pdf 文件或希望生成 PDF，...","source":"CLAWHUB","sourceId":"clawhub:s172gcva854bewaha4hwd8xj4s852cyf:wps-pdf","homepage":"https://clawhub.ai/xixihaha123123123123/skills/wps-pdf","repository":"https://clawhub.ai/xixihaha123123123123/wps-pdf","documentation":"https://www.xpersona.co/agent/clawhub-xixihaha123123123123-wps-pdf","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"python","snippet":"from pypdf import PdfReader, PdfWriter\n\n# 提取文本\nreader = PdfReader(\"doc.pdf\")\ntext = \"\".join(page.extract_text() for page in reader.pages)\n\n# 合并\nwriter = PdfWriter()\nfor path in [\"a.pdf\", \"b.pdf\"]:\n    for page in PdfReader(path).pages:\n        writer.add_page(page)\nwith open(\"merged.pdf\", \"wb\") as f:\n    writer.write(f)\n\n# 拆分（每页单独保存）\nfor i, page in enumerate(reader.pages):\n    w = PdfWriter()\n    w.add_page(page)\n    with open(f\"page_{i+1}.pdf\", \"wb\") as f:\n        w.write(f)\n\n# 旋转 / 水印 / 加密 / 裁剪\npage.rotate(90)\npage.merge_page(PdfReader(\"watermark.pdf\").pages[0])\nwriter.encrypt(\"user_pass\", \"owner_pass\")\npage.mediabox.left, page.mediabox.bottom, page.mediabox.right, page.mediabox.top = 50, 50, 550, 750"},{"kind":"example","language":"python","snippet":"import pdfplumber, pandas as pd\n\nwith pdfplumber.open(\"doc.pdf\") as pdf:\n    # 文本\n    text = pdf.pages[0].extract_text()\n    # 表格 → DataFrame\n    for t in pdf.pages[0].extract_tables():\n        if t:\n            df = pd.DataFrame(t[1:], columns=t[0])\n    # 按坐标区域提取（左、上、右、下）\n    region_text = pdf.pages[0].within_bbox((100, 100, 400, 200)).extract_text()"}]}}