# 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 "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "outputType": "audio",
    "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/podcasts/csharp/from-pdf)
* [Node.js](https://docs.autocontentapi.com/code-samples/podcasts/nodejs/from-pdf)
* [Java](https://docs.autocontentapi.com/code-samples/podcasts/java/from-pdf)
* [PHP](https://docs.autocontentapi.com/code-samples/podcasts/php/from-pdf)
* [Python](https://docs.autocontentapi.com/code-samples/podcasts/python/from-pdf)
