> ## Documentation Index
> Fetch the complete documentation index at: https://developers.luminpdf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Documents

> Create, upload, and process PDF documents in the Workspace.

The Documents API lets you create and store PDF documents in your Lumin Workspace, and run PDF operations such as merge, compress, split, password protection, summarization, and translation.

## Key concepts

* **Document** — a file stored in a Lumin Workspace. Once created, it can be viewed, shared, annotated, or used in other workflows.
* **Upload (file-upload method)** — import an existing file by providing a file URL or uploading directly via multipart form data.
* **Template (template method)** — generate a PDF by filling in fields from a PDF template (`pdf_` prefix templates).
* **Location** — where the document is saved: the Workspace's shared document list, a specific Space, or the user's Personal document list. You can optionally specify a folder.
* **PDF operations** — process documents by Lumin document ID or publicly accessible file URL. Most operations return a temporary `signed_url` that expires after 30 minutes. To persist results, download the file and re-upload via [Upload Document](/tabs/api-reference/api/documents/create-document).

## Supported file formats

PDF, DOCX, XLSX, PPTX, DOC, XLS, PNG, JPEG/JPG

## File size limits

| Plan | Max size |
| ---- | -------- |
| Free | 20 MB    |
| Paid | 200 MB   |

## Create documents

<CardGroup cols={2}>
  <Card title="Upload Document" icon="upload" href="/tabs/api-reference/api/documents/create-document#upload-from-file">
    Import and save a document from a file URL or direct file upload.
  </Card>

  <Card title="Create Document from Template" icon="file-plus" href="/tabs/api-reference/api/documents/create-document#create-from-template">
    Create and save a PDF document from a PDF template.
  </Card>
</CardGroup>

## PDF operations

<CardGroup cols={2}>
  <Card title="Merge Documents" icon="object-group" href="/tabs/api-reference/api/documents/merge-documents">
    Combine 2–20 PDF or image files into a single PDF.
  </Card>

  <Card title="Compress Document" icon="compress" href="/tabs/api-reference/api/documents/compress-document">
    Reduce PDF file size with standard or maximum compression.
  </Card>

  <Card title="Split Document" icon="scissors" href="/tabs/api-reference/api/documents/split-document">
    Extract page ranges or split a PDF into equal-sized parts.
  </Card>

  <Card title="Add Password" icon="lock" href="/tabs/api-reference/api/documents/add-password">
    Add or change password protection on a PDF.
  </Card>

  <Card title="Remove Password" icon="lock-open" href="/tabs/api-reference/api/documents/remove-password">
    Remove password protection from a PDF.
  </Card>

  <Card title="Summarize Document" icon="sparkles" href="/tabs/api-reference/api/documents/summarize-document">
    Generate an AI-powered summary of a PDF's text content.
  </Card>

  <Card title="Translate Document" icon="language" href="/tabs/api-reference/api/documents/translate-document">
    Translate a PDF into a target language while preserving layout.
  </Card>
</CardGroup>
