> 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/data-sources.md).

# Data Sources

Data Sources are used when generating PDFs from multiple records for label PDF generation. They enable you to specify the pool of records from which to generate labels.

<figure><img src="https://2707432902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGZA5kgM4oTQMrpISbVT3%2Fuploads%2FCN5zczno90kCMs3ZjK5r%2F097.jpg?alt=media&amp;token=e6a80645-bbd1-4897-a76f-d71d01db4f35" alt=""><figcaption><p>Data Source</p></figcaption></figure>

* **Source**: Table from which to retrieve records. This should correlate to the 'Source table' on the PDF Template record.
* **Query type**: Specifies how to gather records for the **Data Source**. Typically, 'Filter Builder' is recommended. Scripted options are available for advanced use-cases.
* **Exclude since last used**: Allows further filtering applied to data source
