<pdf>

	<version>1.0.0</version>
	<title>PDF Template Demo - Price list</title>
	<date>2026-10-05</date>
	<note>Price list demo: the data rows are read from a CSV file (DataProviderCSV)</note>

	<default_page>
		<orientation>P</orientation>
		<unit>mm</unit>
		<format>A4</format>
	</default_page>

	<doc_info>
		<creator>Alien Project</creator>
		<author>#MBR</author>
		<title>PDF Price List Demo</title>
		<subject>Copyright (C) 2026 - Alien Project</subject>
		<keywords>price list, catalog, csv, pdf, example</keywords>
	</doc_info>

	<!-- Section without data provider: printed once, and again for each page of the nested "prod" section (header and footer) -->
	<section id="list">
		<page format="A4" orientation="P"/>

		<!-- For debug, set BORDER=1 to check the box sizes -->
		<setvar name="BORDER" value="0"/>
		<setvar name="COLOR_DARK" value="0f5c4d"/>
		<setvar name="COLOR_ACCENT" value="168a73"/>
		<setvar name="COLOR_SOFT" value="e8f3f0"/>
		<setvar name="COLOR_LINE" value="dfe7e4"/>
		<setvar name="COLOR_TEXT" value="222222"/>
		<setvar name="COLOR_GREY" value="6c757d"/>
		<setvar name="COLOR_WHITE" value="ffffff"/>
		<!-- Number format: 1,234.56 USD -->
		<setvar name="NUMERICDECIMALSEPARATOR" value="."/>
		<setvar name="NUMERICTHOUSANDSEPARATOR" value=","/>
		<setvar name="CURRENCYSYMBOL" value=" USD"/>

		<print_content>list_header</print_content>

		<section id="prod" row_height="7" rows_count="30">
			<!-- One row for each line of the CSV file, up to 30 rows per page -->
			<print_content>list_row</print_content>
		</section>

		<print_content>list_footer</print_content>
	</section>

	<section id="finalize">
		<output>
			<dest>I</dest>
			<name>price_list.pdf</name>
			<isUTF8>true</isUTF8>
		</output>
	</section>

	<!-- ********************************** -->

	<content id="list_header">
		<box x="0" y="0" width="210" height="36" border="0" text="">
			<fill type="S" color="{COLOR_DARK}"/>
		</box>
		<fill type="N"/>
		<box x="15" y="9" width="120" height="9" border="{BORDER}" horizalign="Left" vertalign="Center">
			<text>{COMPANY_NAME}</text>
			<font family="Helvetica" style="B" size="17" color="{COLOR_WHITE}"/>
		</box>
		<box x="15" y="20" width="120" height="10" border="{BORDER}" horizalign="Left" vertalign="Top">
			<text>{COMPANY_ADDRESS}
{COMPANY_CONTACTS}</text>
			<font family="Helvetica" style="N" size="8" color="cfe6df"/>
		</box>
		<box x="120" y="9" width="75" height="11" border="{BORDER}" horizalign="Right" vertalign="Center">
			<text>{LIST_NAME}</text>
			<font family="Helvetica" style="B" size="18" color="{COLOR_WHITE}"/>
		</box>

		<rectangle x1="15" y1="42" x2="195" y2="50" radius="1.5" border="1111">
			<linestyle width="0"/>
			<fill type="S" color="{COLOR_SOFT}"/>
		</rectangle>
		<box x="18" y="42" width="175" height="8" border="{BORDER}" horizalign="Left" vertalign="Center">
			<text>{LIST_VALIDITY}</text>
			<font family="Helvetica" style="B" size="9" color="{COLOR_DARK}"/>
		</box>

		<!-- Table header -->
		<font family="Helvetica" style="B" size="8" color="{COLOR_ACCENT}"/>
		<fill type="N"/>
		<box x="15" y="55" width="22" height="7" border="{BORDER}" horizalign="Left" vertalign="Center"><text>CODE</text></box>
		<box x="37" y="55" width="78" height="7" border="{BORDER}" horizalign="Left" vertalign="Center"><text>DESCRIPTION</text></box>
		<box x="115" y="55" width="24" height="7" border="{BORDER}" horizalign="Left" vertalign="Center"><text>CATEGORY</text></box>
		<box x="139" y="55" width="12" height="7" border="{BORDER}" horizalign="Center" vertalign="Center"><text>UNIT</text></box>
		<box x="151" y="55" width="20" height="7" border="{BORDER}" horizalign="Center" vertalign="Center"><text>STOCK</text></box>
		<box x="171" y="55" width="24" height="7" border="{BORDER}" horizalign="Right" vertalign="Center"><text>PRICE</text></box>
		<line x="15" y="62" width="180" height="1">
			<orientation>HorizontallyTop</orientation>
			<linestyle width="0.4" color="{COLOR_DARK}"/>
		</line>
	</content>

	<!-- ********************************** -->

	<content id="list_row">
		<fill type="N"/>
		<box x="15" y="62" width="22" height="7" border="{BORDER}" horizalign="Left" vertalign="Center">
			<text>{prod.code}</text>
			<font family="Helvetica" style="N" size="7.5" color="{COLOR_GREY}"/>
		</box>
		<font family="Helvetica" style="N" size="8.5" color="{COLOR_TEXT}"/>
		<box x="37" y="62" width="78" height="7" border="{BORDER}" horizalign="Left" vertalign="Center"><text>{prod.description}</text></box>
		<box x="115" y="62" width="24" height="7" border="{BORDER}" horizalign="Left" vertalign="Center"><text>{prod.category}</text></box>
		<box x="139" y="62" width="12" height="7" border="{BORDER}" horizalign="Center" vertalign="Center"><text>{prod.unit}</text></box>
		<box x="151" y="62" width="20" height="7" border="{BORDER}" horizalign="Center" vertalign="Center">
			<text>{prod.availability}</text>
			<font family="Helvetica" style="N" size="7.5" color="{COLOR_GREY}"/>
		</box>
		<box x="171" y="62" width="24" height="7" border="{BORDER}" horizalign="Right" vertalign="Center" format="C2">
			<text>{prod.price}</text>
			<font family="Helvetica" style="B" size="8.5" color="{COLOR_TEXT}"/>
		</box>
		<line x="15" y="69" width="180" height="1">
			<orientation>HorizontallyTop</orientation>
			<linestyle width="0.2" color="{COLOR_LINE}"/>
		</line>
	</content>

	<!-- ********************************** -->

	<content id="list_footer">
		<line x="15" y="280" width="180" height="1">
			<orientation>HorizontallyTop</orientation>
			<linestyle width="0.4" color="{COLOR_DARK}"/>
		</line>
		<box x="15" y="282" width="120" height="6" border="{BORDER}" horizalign="Left" vertalign="Center">
			<text>{COMPANY_NAME} - {LIST_NAME} - printed on {CURRENTDATE}</text>
			<font family="Helvetica" style="I" size="7" color="{COLOR_GREY}"/>
		</box>
		<box x="135" y="282" width="60" height="6" border="{BORDER}" horizalign="Right" vertalign="Center">
			<text>Page {PAGEINDEX} / {PAGECOUNT}</text>
			<font family="Helvetica" style="B" size="7.5" color="{COLOR_DARK}"/>
		</box>
	</content>

</pdf>
