360 Secure SkillHub
360 安全技能中心

PDF to Text

该 Skill 调用 PDFAPIHub 的 PDF 转文本 API,接收 PDF 的公开 URL、Base64 内容或 multipart 文件,返回全部或选定页面的纯文本,需使用 CLIENT-API-KEY 并联网。

rishabhdugar
rishabhdugar
热度 46.99
最近更新 2026-05-11 17:44:03
分类:效率依赖:第三方 API / 代码执行应用场景:文件转换 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pdf-to-txt
Metadata
name
pdf-to-txt
description
Extract plain text from all or selected pages of a PDF.

PDF to Text

What It Does

Extracts plain text from all or selected pages of a PDF.

When to Use

  • Extract readable text from a PDF for processing or analysis
  • Get raw text content from PDF documents

Required Inputs

Provide one of:

  • url — public URL to a PDF
  • file — base64-encoded 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. Full API documentation is available at https://pdfapihub.com/docs.

Use Cases

  • Full-Text Search Indexing — Extract text from PDFs to build searchable indexes
  • AI/LLM Processing — Extract PDF text for feeding into language models or chatbots
  • Content Migration — Pull text from legacy PDF documents for migration to new systems
  • Plagiarism Detection — Extract text for comparison and duplicate detection
  • Accessibility — Extract text from PDFs for screen readers or text-to-speech

Aliases

  • /v1/convert/pdf/text is an alias

Example Usage

curl -X POST https://pdfapihub.com/api/v1/convert/pdf/txt \
  -H "CLIENT-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://pdfapihub.com/sample-pdfapi-intro.pdf", "output": "url" }'