360 Secure SkillHub
360 安全技能中心

PDF Info

通过外部 PDF 服务接口,以 URL、base64 或文件上传方式提交 PDF,返回加密状态、页数、文件大小以及标题、作者、主题、创建工具等元数据。适用于处理前预检、上传校验、配额检查与工作流路由。需自备 API key,调用会将 PDF 或链接发给外部服务。

rishabhdugar
rishabhdugar
热度 47.42
最近更新 2026-05-11 17:44:07
分类:效率依赖:第三方 API应用场景:数据处理 / API 集成 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add pdf-info
Metadata
name
pdf-info
description
Get PDF metadata, encryption status, page count, and file size. Useful for pre-flight checks before processing.

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" }'