<pdf>

	<version>1.0.0</version>
	<title>PDF Template Demo - Calendar 2027</title>
	<date>2026-10-05</date>
	<note>Wall calendar 2027: one page per month (master section), one row per week (detail section), colors and holidays from the data</note>

	<default_page>
		<orientation>L</orientation>
		<unit>mm</unit>
		<format>A4</format>
	</default_page>

	<doc_info>
		<creator>Alien Project</creator>
		<author>#MBR</author>
		<title>PDF Calendar 2027 Demo</title>
		<subject>Copyright (C) 2026 - Alien Project</subject>
		<keywords>calendar, 2027, planner, holidays, pdf, example</keywords>
	</doc_info>

	<!-- Data: docs/tools/build_calendar_data.php builds the "month" and "week" rows for any year -->
	<section id="month" y_start="0" rows_count="1">
		<!-- A new page is generated for each month (data row of the "month" section) -->
		<page format="A4" orientation="L"/>

		<setvar name="COLOR_TEXT" value="1f2933"/>
		<setvar name="COLOR_GREY" value="8a96a3"/>
		<setvar name="COLOR_GRID" value="dfe4ea"/>
		<setvar name="COLOR_HOLIDAY" value="c0392b"/>
		<setvar name="COLOR_WHITE" value="ffffff"/>
		<!-- Weekday initials of the mini calendars (weeks start on Monday) -->
		<setvar name="DAY1" value="M"/>
		<setvar name="DAY2" value="T"/>
		<setvar name="DAY3" value="W"/>
		<setvar name="DAY4" value="T"/>
		<setvar name="DAY5" value="F"/>
		<setvar name="DAY6" value="S"/>
		<setvar name="DAY7" value="S"/>

		<print_content>month_panel</print_content>
		<print_content>month_grid_header</print_content>

		<section id="week" y_start="22" row_height="29" rows_count="6">
			<!-- One row for each week of the month (4 to 6 rows): the coordinates are those of the first week -->
			<print_content>week_row</print_content>
		</section>

		<print_content>month_footer</print_content>
	</section>

	<section id="finalize">
		<output>
			<dest>I</dest>
			<name>calendar_2027.pdf</name>
			<isUTF8>true</isUTF8>
		</output>
	</section>

	<!-- ********************************** -->

	<content id="month_panel">
		<!-- Left panel in the color of the month -->
		<box x="0" y="0" width="84" height="210" border="0" text="">
			<fill type="S" color="{month.color}"/>
		</box>
		<fill type="N"/>
		<box x="10" y="10" width="66" height="5" border="0" horizalign="Left" vertalign="Center">
			<text>{COMPANY_NAME}</text>
			<font family="Helvetica" style="B" size="7.5" color="{month.colorSoft}"/>
		</box>
		<box x="10" y="17" width="66" height="9" border="0" horizalign="Left" vertalign="Center">
			<text>{month.year}</text>
			<font family="Helvetica" style="B" size="18" color="{month.colorSoft}"/>
		</box>
		<box x="10" y="26" width="70" height="15" border="0" horizalign="Left" vertalign="Center">
			<text>{month.monthName}</text>
			<font family="Helvetica" style="B" size="30" color="{COLOR_WHITE}"/>
		</box>
		<box x="10" y="42" width="66" height="6" border="0" horizalign="Left" vertalign="Center">
			<text>{month.info}</text>
			<font family="Helvetica" style="N" size="9" color="{month.colorSoft}"/>
		</box>
		<line x="10" y="55" width="66" height="1">
			<orientation>HorizontallyTop</orientation>
			<linestyle width="0.3" color="{month.colorLight}"/>
		</line>

		<!-- Mini calendar: prev month (each column is a multi-line text) -->
		<box x="10" y="61" width="31" height="5" border="0" horizalign="Left" vertalign="Center">
			<text>{month.prevTitle}</text>
			<font family="Helvetica" style="B" size="7.5" color="{COLOR_WHITE}"/>
		</box>
		<font family="Helvetica" style="B" size="5.5" color="{month.colorLight}"/>
		<box x="9.14" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY1}</text></box>
		<box x="13.43" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY2}</text></box>
		<box x="17.71" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY3}</text></box>
		<box x="22.00" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY4}</text></box>
		<box x="26.28" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY5}</text></box>
		<box x="30.57" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY6}</text></box>
		<box x="34.85" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY7}</text></box>
		<box x="9.14" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.p1}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="13.43" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.p2}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="17.71" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.p3}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="22.00" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.p4}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="26.28" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.p5}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="30.57" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.p6}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="34.85" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.p7}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorLight}"/></box>
		<!-- Mini calendar: next month (each column is a multi-line text) -->
		<box x="45" y="61" width="31" height="5" border="0" horizalign="Left" vertalign="Center">
			<text>{month.nextTitle}</text>
			<font family="Helvetica" style="B" size="7.5" color="{COLOR_WHITE}"/>
		</box>
		<font family="Helvetica" style="B" size="5.5" color="{month.colorLight}"/>
		<box x="44.14" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY1}</text></box>
		<box x="48.43" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY2}</text></box>
		<box x="52.71" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY3}</text></box>
		<box x="57.00" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY4}</text></box>
		<box x="61.28" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY5}</text></box>
		<box x="65.57" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY6}</text></box>
		<box x="69.85" y="67" width="6" height="4" border="0" horizalign="Center" vertalign="Center"><text>{DAY7}</text></box>
		<box x="44.14" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.x1}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="48.43" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.x2}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="52.71" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.x3}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="57.00" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.x4}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="61.28" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.x5}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="65.57" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.x6}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorSoft}"/></box>
		<box x="69.85" y="71" width="6" height="19" border="0" horizalign="Center" vertalign="Top"><text>{month.x7}</text><font family="Helvetica" style="N" size="6.5" color="{month.colorLight}"/></box>

		<line x="10" y="94" width="66" height="1">
			<orientation>HorizontallyTop</orientation>
			<linestyle width="0.3" color="{month.colorLight}"/>
		</line>

		<!-- Holidays of the month: two multi-line boxes (days and names) -->
		<box x="10" y="99" width="66" height="5" border="0" horizalign="Left" vertalign="Center">
			<text>HOLIDAYS</text>
			<font family="Helvetica" style="B" size="7.5" color="{month.colorSoft}"/>
		</box>
		<box x="9" y="105" width="8" height="18" border="0" horizalign="Right" vertalign="Top">
			<text>{month.holidayDays}</text>
			<font family="Helvetica" style="B" size="8.5" color="{COLOR_WHITE}"/>
		</box>
		<box x="18" y="105" width="60" height="18" border="0" horizalign="Left" vertalign="Top">
			<text>{month.holidayNames}</text>
			<font family="Helvetica" style="N" size="8.5" color="{COLOR_WHITE}"/>
		</box>

		<!-- Notes card -->
		<rectangle x1="8" y1="130" x2="76" y2="199" radius="2" border="1111">
			<linestyle width="0"/>
			<fill type="S" color="{month.colorSoft}"/>
		</rectangle>
		<box x="12" y="133" width="60" height="6" border="0" horizalign="Left" vertalign="Center">
			<text>NOTES</text>
			<font family="Helvetica" style="B" size="7.5" color="{month.color}"/>
		</box>
		<linestyle width="0.2" color="{month.colorLight}"/>
		<line x="12" y="148" width="60" height="1"><orientation>HorizontallyTop</orientation></line>
		<line x="12" y="156" width="60" height="1"><orientation>HorizontallyTop</orientation></line>
		<line x="12" y="164" width="60" height="1"><orientation>HorizontallyTop</orientation></line>
		<line x="12" y="172" width="60" height="1"><orientation>HorizontallyTop</orientation></line>
		<line x="12" y="180" width="60" height="1"><orientation>HorizontallyTop</orientation></line>
		<line x="12" y="188" width="60" height="1"><orientation>HorizontallyTop</orientation></line>
	</content>

	<!-- ********************************** -->

	<content id="month_grid_header">
		<fill type="N"/>
		<font family="Helvetica" style="B" size="7" color="{COLOR_GREY}"/>
		<box x="87" y="12" width="12" height="8" border="0" horizalign="Center" vertalign="Center"><text>WK</text></box>
		<font family="Helvetica" style="B" size="8" color="{month.color}"/>
		<box x="99.5" y="12" width="26.5" height="8" border="0" horizalign="Center" vertalign="Center"><text>MONDAY</text></box>
		<box x="126" y="12" width="26.5" height="8" border="0" horizalign="Center" vertalign="Center"><text>TUESDAY</text></box>
		<box x="152.5" y="12" width="26.5" height="8" border="0" horizalign="Center" vertalign="Center"><text>WEDNESDAY</text></box>
		<box x="179" y="12" width="26.5" height="8" border="0" horizalign="Center" vertalign="Center"><text>THURSDAY</text></box>
		<box x="205.5" y="12" width="26.5" height="8" border="0" horizalign="Center" vertalign="Center"><text>FRIDAY</text></box>
		<box x="232" y="12" width="26.5" height="8" border="0" horizalign="Center" vertalign="Center"><text>SATURDAY</text></box>
		<box x="258.5" y="12" width="26.5" height="8" border="0" horizalign="Center" vertalign="Center">
			<text>SUNDAY</text>
			<font family="Helvetica" style="B" size="8" color="{COLOR_HOLIDAY}"/>
		</box>
		<line x="99.5" y="21" width="185.5" height="1">
			<orientation>HorizontallyTop</orientation>
			<linestyle width="0.8" color="{month.color}"/>
		</line>
	</content>

	<!-- ********************************** -->

	<content id="week_row">
		<!-- ISO week number -->
		<box x="87" y="23" width="12" height="8" border="0" horizalign="Center" vertalign="Center">
			<text>{week.week}</text>
			<font family="Helvetica" style="N" size="7.5" color="{COLOR_GREY}"/>
		</box>
		<!-- 7 day cells: background (c1..c7) and number (t1..t7) colors come from the data, holiday names (n1..n7) only when set -->
		<!-- Day 1 -->
		<rectangle x1="99.5" y1="22" x2="126" y2="51">
			<linestyle width="0.2" color="{COLOR_GRID}"/>
			<fill type="S" color="{week.c1}"/>
		</rectangle>
		<box x="101" y="23" width="14" height="8" border="0" horizalign="Left" vertalign="Center">
			<text>{week.d1}</text>
			<font family="Helvetica" style="B" size="15" color="{week.t1}"/>
		</box>
		<box x="100.5" y="41" width="24.5" height="9" border="0" horizalign="Left" vertalign="Bottom" printif="{week.n1}">
			<text>{week.n1}</text>
			<font family="Helvetica" style="B" size="6.5" color="{COLOR_HOLIDAY}"/>
		</box>
		<!-- Day 2 -->
		<rectangle x1="126" y1="22" x2="152.5" y2="51">
			<linestyle width="0.2" color="{COLOR_GRID}"/>
			<fill type="S" color="{week.c2}"/>
		</rectangle>
		<box x="127.5" y="23" width="14" height="8" border="0" horizalign="Left" vertalign="Center">
			<text>{week.d2}</text>
			<font family="Helvetica" style="B" size="15" color="{week.t2}"/>
		</box>
		<box x="127" y="41" width="24.5" height="9" border="0" horizalign="Left" vertalign="Bottom" printif="{week.n2}">
			<text>{week.n2}</text>
			<font family="Helvetica" style="B" size="6.5" color="{COLOR_HOLIDAY}"/>
		</box>
		<!-- Day 3 -->
		<rectangle x1="152.5" y1="22" x2="179" y2="51">
			<linestyle width="0.2" color="{COLOR_GRID}"/>
			<fill type="S" color="{week.c3}"/>
		</rectangle>
		<box x="154" y="23" width="14" height="8" border="0" horizalign="Left" vertalign="Center">
			<text>{week.d3}</text>
			<font family="Helvetica" style="B" size="15" color="{week.t3}"/>
		</box>
		<box x="153.5" y="41" width="24.5" height="9" border="0" horizalign="Left" vertalign="Bottom" printif="{week.n3}">
			<text>{week.n3}</text>
			<font family="Helvetica" style="B" size="6.5" color="{COLOR_HOLIDAY}"/>
		</box>
		<!-- Day 4 -->
		<rectangle x1="179" y1="22" x2="205.5" y2="51">
			<linestyle width="0.2" color="{COLOR_GRID}"/>
			<fill type="S" color="{week.c4}"/>
		</rectangle>
		<box x="180.5" y="23" width="14" height="8" border="0" horizalign="Left" vertalign="Center">
			<text>{week.d4}</text>
			<font family="Helvetica" style="B" size="15" color="{week.t4}"/>
		</box>
		<box x="180" y="41" width="24.5" height="9" border="0" horizalign="Left" vertalign="Bottom" printif="{week.n4}">
			<text>{week.n4}</text>
			<font family="Helvetica" style="B" size="6.5" color="{COLOR_HOLIDAY}"/>
		</box>
		<!-- Day 5 -->
		<rectangle x1="205.5" y1="22" x2="232" y2="51">
			<linestyle width="0.2" color="{COLOR_GRID}"/>
			<fill type="S" color="{week.c5}"/>
		</rectangle>
		<box x="207" y="23" width="14" height="8" border="0" horizalign="Left" vertalign="Center">
			<text>{week.d5}</text>
			<font family="Helvetica" style="B" size="15" color="{week.t5}"/>
		</box>
		<box x="206.5" y="41" width="24.5" height="9" border="0" horizalign="Left" vertalign="Bottom" printif="{week.n5}">
			<text>{week.n5}</text>
			<font family="Helvetica" style="B" size="6.5" color="{COLOR_HOLIDAY}"/>
		</box>
		<!-- Day 6 -->
		<rectangle x1="232" y1="22" x2="258.5" y2="51">
			<linestyle width="0.2" color="{COLOR_GRID}"/>
			<fill type="S" color="{week.c6}"/>
		</rectangle>
		<box x="233.5" y="23" width="14" height="8" border="0" horizalign="Left" vertalign="Center">
			<text>{week.d6}</text>
			<font family="Helvetica" style="B" size="15" color="{week.t6}"/>
		</box>
		<box x="233" y="41" width="24.5" height="9" border="0" horizalign="Left" vertalign="Bottom" printif="{week.n6}">
			<text>{week.n6}</text>
			<font family="Helvetica" style="B" size="6.5" color="{COLOR_HOLIDAY}"/>
		</box>
		<!-- Day 7 -->
		<rectangle x1="258.5" y1="22" x2="285" y2="51">
			<linestyle width="0.2" color="{COLOR_GRID}"/>
			<fill type="S" color="{week.c7}"/>
		</rectangle>
		<box x="260" y="23" width="14" height="8" border="0" horizalign="Left" vertalign="Center">
			<text>{week.d7}</text>
			<font family="Helvetica" style="B" size="15" color="{week.t7}"/>
		</box>
		<box x="259.5" y="41" width="24.5" height="9" border="0" horizalign="Left" vertalign="Bottom" printif="{week.n7}">
			<text>{week.n7}</text>
			<font family="Helvetica" style="B" size="6.5" color="{COLOR_HOLIDAY}"/>
		</box>
		<!-- Goals box: printed below the last week when the month has less than 6 weeks (goals1 / goals2 = 1 or 2 free rows) -->
		<rectangle x1="99.5" y1="55" x2="285" y2="80" radius="2" border="1111" printif="{week.goals1}">
			<linestyle width="0"/>
			<fill type="S" color="{month.colorPale}"/>
		</rectangle>
		<rectangle x1="99.5" y1="55" x2="285" y2="109" radius="2" border="1111" printif="{week.goals2}">
			<linestyle width="0"/>
			<fill type="S" color="{month.colorPale}"/>
		</rectangle>
		<fill type="N"/>
		<box x="104" y="57" width="120" height="6" border="0" horizalign="Left" vertalign="Center" printif="{week.goals1}">
			<text>Goals for {month.monthName}</text>
			<font family="Helvetica" style="B" size="8" color="{month.color}"/>
		</box>
		<linestyle width="0.25" color="{month.colorLight}"/>
		<rectangle x1="104" y1="66" x2="107" y2="69" radius="0.6" border="1111" printif="{week.goals1}"/>
		<line x="110" y="69" width="48" height="1" printif="{week.goals1}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="164" y1="66" x2="167" y2="69" radius="0.6" border="1111" printif="{week.goals1}"/>
		<line x="170" y="69" width="48" height="1" printif="{week.goals1}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="224" y1="66" x2="227" y2="69" radius="0.6" border="1111" printif="{week.goals1}"/>
		<line x="230" y="69" width="48" height="1" printif="{week.goals1}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="104" y1="74" x2="107" y2="77" radius="0.6" border="1111" printif="{week.goals1}"/>
		<line x="110" y="77" width="48" height="1" printif="{week.goals1}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="164" y1="74" x2="167" y2="77" radius="0.6" border="1111" printif="{week.goals1}"/>
		<line x="170" y="77" width="48" height="1" printif="{week.goals1}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="224" y1="74" x2="227" y2="77" radius="0.6" border="1111" printif="{week.goals1}"/>
		<line x="230" y="77" width="48" height="1" printif="{week.goals1}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="104" y1="82" x2="107" y2="85" radius="0.6" border="1111" printif="{week.goals2}"/>
		<line x="110" y="85" width="48" height="1" printif="{week.goals2}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="164" y1="82" x2="167" y2="85" radius="0.6" border="1111" printif="{week.goals2}"/>
		<line x="170" y="85" width="48" height="1" printif="{week.goals2}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="224" y1="82" x2="227" y2="85" radius="0.6" border="1111" printif="{week.goals2}"/>
		<line x="230" y="85" width="48" height="1" printif="{week.goals2}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="104" y1="90" x2="107" y2="93" radius="0.6" border="1111" printif="{week.goals2}"/>
		<line x="110" y="93" width="48" height="1" printif="{week.goals2}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="164" y1="90" x2="167" y2="93" radius="0.6" border="1111" printif="{week.goals2}"/>
		<line x="170" y="93" width="48" height="1" printif="{week.goals2}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="224" y1="90" x2="227" y2="93" radius="0.6" border="1111" printif="{week.goals2}"/>
		<line x="230" y="93" width="48" height="1" printif="{week.goals2}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="104" y1="98" x2="107" y2="101" radius="0.6" border="1111" printif="{week.goals2}"/>
		<line x="110" y="101" width="48" height="1" printif="{week.goals2}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="164" y1="98" x2="167" y2="101" radius="0.6" border="1111" printif="{week.goals2}"/>
		<line x="170" y="101" width="48" height="1" printif="{week.goals2}"><orientation>HorizontallyTop</orientation></line>
		<rectangle x1="224" y1="98" x2="227" y2="101" radius="0.6" border="1111" printif="{week.goals2}"/>
		<line x="230" y="101" width="48" height="1" printif="{week.goals2}"><orientation>HorizontallyTop</orientation></line>
		<fill type="N"/>
	</content>

	<!-- ********************************** -->

	<content id="month_footer">
		<fill type="N"/>
		<box x="87" y="200" width="150" height="6" border="0" horizalign="Left" vertalign="Center">
			<text>{TITLE}  ·  {HOLIDAYS_NOTE}  ·  Weeks start on Monday (ISO 8601 week numbers)</text>
			<font family="Helvetica" style="I" size="7" color="{COLOR_GREY}"/>
		</box>
		<box x="237" y="200" width="48" height="6" border="0" horizalign="Right" vertalign="Center">
			<text>{month.monthNum} / 12</text>
			<font family="Helvetica" style="B" size="7.5" color="{month.color}"/>
		</box>
	</content>

</pdf>
