# Building a PDF Template

PDFs are assembled by combining the appropriate **Template**, **Merge Maps**, and a **Data Source**. Review the following sub-sections to learn the details of each.

* **PDF Templates**: The parent record that defines the content & overall behavior of the PDF
  * [**HTML to PDF Merge Templates**](/pdf-generator/technical-docs/building-a-pdf-template/html-to-pdf-merge-templates.md): Templates used for a typical single-page or multi-page PDF
  * [**Labels**](/pdf-generator/technical-docs/building-a-pdf-template/creating-labels.md): Templates used when printing pages of adhesive labels such as Avery-branded labels
* [**Merge Maps**](/pdf-generator/technical-docs/building-a-pdf-template/merge-maps.md): Mappings from dynamic data into a usable piece of PDF content
* [**Data Sources**](/pdf-generator/technical-docs/building-a-pdf-template/data-sources.md): Group of records from which to generate PDFs


---

# 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.yansalabs.com/pdf-generator/technical-docs/building-a-pdf-template.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.
