# 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#](/code-samples/podcasts/csharp/from-pdf.md)
* [Node.js](/code-samples/podcasts/nodejs/from-pdf.md)
* [Java](/code-samples/podcasts/java/from-pdf.md)
* [PHP](/code-samples/podcasts/php/from-pdf.md)
* [Python](/code-samples/podcasts/python/from-pdf.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.autocontentapi.com/quick-start/podcasts/from-pdf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
