PDF Info API for Developers

    Feature

    Check whether a PDF is encrypted, get page count, file size, and document metadata (title, author, subject, creator). Useful for pre-flight checks before calling unlock, merge, or other endpoints.

    What it does

    Inspects a PDF and returns its encryption status, page count, file size, and metadata.

    Does not modify the PDF — read-only inspection.

    Accepts URL, file upload, or base64 input.

    Endpoint & Parameters

    POST /v1/pdf/info

    url
    conditional

    Public URL to a PDF.

    file
    conditional

    PDF file upload (multipart).

    base64_pdf
    conditional

    Base64-encoded PDF.

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

    Response: is_encrypted, page_count, file_size_bytes, metadata (title, author, subject, creator).

    Sandbox

    Inspect a PDF