# 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#](https://docs.autocontentapi.com/code-samples/explainer-videos/csharp/from-pdf)
* [Node.js](https://docs.autocontentapi.com/code-samples/explainer-videos/nodejs/from-pdf)
* [Java](https://docs.autocontentapi.com/code-samples/explainer-videos/java/from-pdf)
* [PHP](https://docs.autocontentapi.com/code-samples/explainer-videos/php/from-pdf)
* [Python](https://docs.autocontentapi.com/code-samples/explainer-videos/python/from-pdf)
