← 返回
未分类 Key 中文

PDF Info

Get PDF metadata, encryption status, page count, and file size. Useful for pre-flight checks before processing.
获取 PDF 元数据、加密状态、页数和文件大小。适用于处理前的预检查。
rishabhdugar rishabhdugar 来源
未分类 clawhub v1.0.0 1 版本 99706.7 Key: 需要
★ 0
Stars
📥 340
下载
💾 1
安装
1
版本
#latest

概述

PDF Info

What It Does

Inspects a PDF and returns metadata including encryption status, page count, file size, and document properties (title, author, subject, creator).

When to Use

  • Check if a PDF is encrypted before calling unlock
  • Pre-flight validation before PDF processing
  • Get page count and file size information

Required Inputs

Provide one of:

  • url — URL to a PDF
  • base64_pdf — 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

  • Pre-Flight Validation — Check page count and encryption status before processing
  • Upload Validation — Verify uploaded PDFs meet requirements (page limit, not encrypted)
  • Workflow Routing — Route encrypted PDFs to unlock step, unencrypted directly to processing
  • Metadata Display — Show document title, author, and page count in a document management UI
  • Quota Checks — Verify page count before merge/split to avoid exceeding limits

Example Usage

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 19:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Document to PDF

rishabhdugar
通过PDFAPIHub云API将office文档(DOCX、DOC、PPT、PPTX、XLS、XLSX、CSV、TXT、ODT、RTF)转换为PDF,文档上传至pdfapihub.com完成转换。
★ 0 📥 805

Generate Image

rishabhdugar
使用无头 Chromium 将 HTML 内容或公开 URL 生成PNG 图片,支持自定义尺寸、Retina 高清、全页面截图以及 Cookie 配置。
★ 0 📥 528

Image OCR Parse

rishabhdugar
使用 PDFAPIHub 云 OCR API 将图像文字提取并上传至 pdfapihub.com 进行 Tesseract OCR 处理,支持灰度等预处理。
★ 1 📥 499