> For the complete documentation index, see [llms.txt](https://docs.autocontentapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autocontentapi.com/quick-start/explainer-videos/from-pdf.md).

# Create from a PDF Upload

Send a base64-encoded PDF to keep proprietary decks or reports private. Mark the resource `pdf` and include the encoded payload in `content`.

```bash
curl -X POST "https://api.autocontentapi.com/content/Create" \
  -H "accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "outputType": "video",
    "resources": [
      { "type": "pdf", "content": "BASE64_ENCODED_PDF" }
    ],
    "text": "Summarize the executive summary and cite supporting stats."
  }'
```

**Tips**

* Encode the PDF with `base64` (macOS/Linux: `base64 file.pdf`).
* For large files, share a pre-signed URL instead using a `website` resource.

## Try it in code

* [C#](/code-samples/explainer-videos/csharp/from-pdf.md)
* [Node.js](/code-samples/explainer-videos/nodejs/from-pdf.md)
* [Java](/code-samples/explainer-videos/java/from-pdf.md)
* [PHP](/code-samples/explainer-videos/php/from-pdf.md)
* [Python](/code-samples/explainer-videos/python/from-pdf.md)
