> For the complete documentation index, see [llms.txt](https://help.sdocs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sdocs.com/sdocs/template-architecture/document-formats.md).

# Document Formats

Choose the right S-Docs output format, then jump to setup, examples, and format-specific guidance.

Use this page when you need to choose the right output format for an S-Docs template.

Each format is built for a different document job.

Use this section to choose the format that fits your layout, editing, and delivery needs.

{% hint style="info" %}
Use **PDF Templates** when you build the layout in S-Docs.

Use **Upload Existing PDFs** when you already have a finished PDF form.

Use **Microsoft formats** when the final file needs to stay in Word, PowerPoint, or Excel.
{% endhint %}

### Start with the path that fits your goal

If you need a print-ready document with flexible layout, start with PDF.

If you need exact placement on a fixed form, use PDF upload.

If users need an editable Office file, use a Microsoft format.

<table data-card-size="large" data-column-title-hidden data-view="cards"><thead><tr><th>Title</th><th>Description</th><th data-card-target data-type="content-ref">Target</th></tr></thead><tbody><tr><td><strong>PDF Templates</strong></td><td>Build dynamic PDFs with layout control, related lists, and page settings.</td><td><a href="/sdocs/template-architecture/document-formats/pdf-templates.md">PDF Templates</a></td></tr><tr><td><strong>HTML Email Templates</strong></td><td>Build merged email content when the output should be sent as email, not downloaded as a file.</td><td><a href="/sdocs/template-architecture/document-formats/html-email-format.md">HTML Email Templates</a></td></tr><tr><td><strong>Upload Existing PDFs</strong></td><td>Map Salesforce data onto a finished PDF form or background document.</td><td><a href="/sdocs/template-architecture/document-formats/pdf-upload-format.md">Upload Existing PDFs</a></td></tr><tr><td><strong>Microsoft Word (DOCX)</strong></td><td>Generate Word documents when the result should stay editable after generation.</td><td><a href="/sdocs/template-architecture/document-formats/docx-s-docs.md">Microsoft Word (DOCX)</a></td></tr></tbody></table>

### Pick the right format

* Use [PDF Templates](/sdocs/template-architecture/document-formats/pdf-templates.md) for quotes, invoices, reports, and other print-style documents.
* Use [Upload Existing PDFs](/sdocs/template-architecture/document-formats/pdf-upload-format.md) for fixed forms that need drag-and-drop field placement.
* Use [HTML Email Templates](/sdocs/template-architecture/document-formats/html-email-format.md) when the output is email content, not a document file.
* Use [Microsoft Word (DOCX)](/sdocs/template-architecture/document-formats/docx-s-docs.md) for editable word-processing documents.
* Use [PowerPoint (PPTX)](/sdocs/template-architecture/document-formats/pptx-format.md) for presentation-style output.
* Use [Excel (XLSX)](/sdocs/template-architecture/document-formats/xlsx-format.md) for spreadsheet-first output.

### What you can do with document formats

* Generate dynamic PDFs from Salesforce data.
* Fill fixed PDF forms with exact field placement.
* Deliver editable Word, PowerPoint, and Excel files.
* Send HTML email content with merged record values.
* Choose format-specific guidance for syntax, layout, and troubleshooting.

### Browse by format

* [PDF Templates](/sdocs/template-architecture/document-formats/pdf-templates.md)
* [Upload Existing PDFs](/sdocs/template-architecture/document-formats/pdf-upload-format.md)
* [HTML Email Templates](/sdocs/template-architecture/document-formats/html-email-format.md)
* [Microsoft Word (DOCX)](/sdocs/template-architecture/document-formats/docx-s-docs.md)
* [PowerPoint (PPTX)](/sdocs/template-architecture/document-formats/pptx-format.md)
* [Excel (XLSX)](/sdocs/template-architecture/document-formats/xlsx-format.md)
* [Additional Formats](/sdocs/template-architecture/document-formats/other-formats.md)

### Related note

Microsoft templates use bracket-based S-Docs syntax inside Office files.

If you need that syntax pattern, start with [Merge Fields With Microsoft Templates (DOCX, PPTX, XLSX)](/sdocs/template-architecture/inserting-merge-fields/merge-fields-with-microsoft-templates-docx-pptx-xlsx.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.sdocs.com/sdocs/template-architecture/document-formats.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
