Parses a PDF into structured JSON with text content, layout-aware blocks (with normalized bounding boxes), tables, and image metadata.
來源於7w4.net。
| 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 PDFfile fieldSend 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中提取資料的開發者使用。