> For the complete documentation index, see [llms.txt](https://docs.yansalabs.com/pdf-generator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yansalabs.com/pdf-generator/technical-docs/building-a-pdf-template.md).

# 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
