name: pdf-parse description: "Parse a PDF into structured JSON: text, layout-aware blocks with bounding boxes, tables, and image metadata."
本技能來自小蔥技能站7w4.net。
Parses a PDF into structured JSON with text content, layout-aware blocks (with normalized bounding boxes), tables, and image metadata.
| Mode | Description |
|---|---|
text |
Text only |
layout |
Text + text blocks with bounding boxes |
tables |
Text + table blocks |
full |
Text + blocks + tables + images (default) |
Provide one of:
- url — public URL to a PDF
- Multipart upload with file field
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.
curl -X POST https://pdfapihub.com/api/v1/pdf/parse \
-H "CLIENT-API-KEY: your_api_key" \
-H "Content-Type: application/json" \
-d '{ "url": "https://pdfapihub.com/sample-pdfinvoice-with-image.pdf", "mode": "full", "pages": "1-3" }'
這個技能質量不錯,文件清晰完整,示例程式碼可直接使用。優點是功能描述詳細、引數配置靈活、支援多種解析模式。不足是缺少錯誤處理指南,遇到問題時排查會比較困難。整體來看,這是一個功能實用、文件友好的技能,適合需要從PDF中提取資料的開發者使用。