<?xml version="1.0" encoding="UTF-8"?>
<!--
  Generic Morphous PDF demo document. Three pages, three shapes, no
  personal content — used as the default doc shipped with the public
  viewer / editor downloads.
-->
<mdf version="0.1"
     xmlns="https://morphousdoc.org/ns/0.1"
     xmlns:print="https://morphousdoc.org/ns/print/0.1"
     xmlns:sem="https://morphousdoc.org/ns/semantics/0.1"
     xmlns:meta="https://morphousdoc.org/ns/meta/0.1">

  <manifest>
    <meta:title>Morphous PDF — Demo Document</meta:title>
    <meta:author>Thornton Statistical</meta:author>
    <meta:subject>Three-page demo of the .mpdf format</meta:subject>
    <meta:description>Circle, hexagon, and rectangular pages in one document — illustrating shape-as-semantics.</meta:description>
    <meta:keywords>morphous, mpdf, demo, shape-first, document format</meta:keywords>
    <meta:created>2026-05-07T00:00:00Z</meta:created>
    <meta:creator-tool>handwritten</meta:creator-tool>
    <conformance level="basic"/>
  </manifest>

  <document>

    <!-- ============================
         PAGE 1 — Circular badge
         ============================ -->
    <canvas id="badge" width="160" height="160" units="mm"
            boundary="M 0,80 A 80,80 0 0,1 160,80 A 80,80 0 0,1 0,80 Z"
            sem:shape-type="circle"
            sem:shape-meaning="badge">
      <layers>
        <layer id="background">
          <circle cx="80" cy="80" r="83"
                  fill="color(cmyk 0.85 0.65 0.20 0.20)"/>
        </layer>
        <layer id="rings">
          <circle cx="80" cy="80" r="74" fill="none"
                  stroke="color(cmyk 0.05 0.10 0.45 0.05)" stroke-width="0.6mm"/>
          <circle cx="80" cy="80" r="68" fill="none"
                  stroke="color(cmyk 0.05 0.10 0.45 0.05)" stroke-width="0.18mm"/>
        </layer>
        <layer id="title">
          <text-block size="22pt" leading="26pt" text-align="center"
                      color="color(cmyk 0 0 0 0)">
            <reflow-region shape="M 30,55 L 130,55 L 130,80 L 30,80 Z"/>
            <p>Morphous</p>
          </text-block>
          <text-block size="9pt" leading="11pt" text-align="center"
                      color="color(cmyk 0.00 0.20 0.80 0.05)">
            <reflow-region shape="M 30,82 L 130,82 L 130,92 L 30,92 Z"/>
            <p>SHAPE  ·  IS  ·  SEMANTICS</p>
          </text-block>
        </layer>
        <layer id="body">
          <text-block size="8pt" leading="11pt" text-align="center"
                      color="color(cmyk 0 0 0 0)">
            <reflow-region shape="M 24,98 L 136,98 L 136,128 L 24,128 Z"/>
            <p>This page is a circle, not a rectangle with a circle drawn on it.</p>
            <p>The boundary path is the document's actual shape — die-cuttable, print-ready.</p>
          </text-block>
        </layer>
      </layers>
    </canvas>

    <!-- ============================
         PAGE 2 — Hexagon
         ============================ -->
    <canvas id="hex" width="180" height="200" units="mm"
            boundary="M 90,0 L 180,50 L 180,150 L 90,200 L 0,150 L 0,50 Z"
            sem:shape-type="hexagon"
            sem:shape-meaning="page">
      <layers>
        <layer id="bg">
          <path d="M 90,0 L 180,50 L 180,150 L 90,200 L 0,150 L 0,50 Z"
                fill="color(cmyk 0.00 0.12 0.06 0.01)"/>
          <path d="M 90,0 L 180,50 L 180,150 L 90,200 L 0,150 L 0,50 Z"
                fill="none"
                stroke="color(cmyk 0.00 0.60 0.50 0.05)" stroke-width="0.6mm"/>
        </layer>
        <layer id="title">
          <text-block size="16pt" leading="20pt" text-align="center"
                      color="color(cmyk 0.95 0.85 0.30 0.50)">
            <reflow-region shape="M 40,40 L 140,40 L 140,58 L 40,58 Z"/>
            <p>Built for print</p>
          </text-block>
        </layer>
        <layer id="body">
          <text-block size="9pt" leading="12pt" text-align="left"
                      color="color(cmyk 0 0 0 0.92)">
            <reflow-region shape="M 30,70 L 150,70 L 150,170 L 30,170 Z"/>
            <p>Die-cut spec, bleed zones, registration marks, ink limits, spot colors — first-class elements of the format, not PostScript hacks.</p>
            <p> </p>
            <p>Conformance levels: Basic / Print / Full. Documents declare their level; the renderer validates accordingly.</p>
            <p> </p>
            <p>Open. Apache 2.0. Patent non-assertion pledge. Schema, reference renderer, viewer and editor all in one repository.</p>
          </text-block>
        </layer>
      </layers>
    </canvas>

    <!-- ============================
         PAGE 3 — Letter rectangle
         ============================ -->
    <canvas id="letter" width="216" height="279" units="mm"
            boundary="M 0,0 L 216,0 L 216,279 L 0,279 Z">
      <layers>
        <layer id="frame">
          <line x1="20" y1="30" x2="196" y2="30"
                stroke="color(cmyk 0.95 0.85 0.30 0.50)" stroke-width="0.6mm"/>
        </layer>
        <layer id="title">
          <text-block size="18pt" leading="22pt" text-align="left">
            <reflow-region shape="M 20,16 L 196,16 L 196,30 L 20,30 Z"/>
            <p>And ordinary pages still work</p>
          </text-block>
        </layer>
        <layer id="body">
          <text-block size="10pt" leading="14pt" text-align="left">
            <reflow-region shape="M 20,40 L 196,40 L 196,150 L 20,150 Z"/>
            <p>A Morphous PDF document can mix any number of shapes in one file. Each canvas declares its own boundary, so a single .mpdf can hold a die-cut cover badge, an octagonal certificate, and a normal letter page side by side.</p>
            <p> </p>
            <p>The renderer emits one PDF page per canvas at that canvas's actual dimensions — so when you print, your circle prints as a circle, your hexagon as a hexagon, and your letter sheet as a letter sheet. No retrofitting rectangular paper.</p>
            <p> </p>
            <p>Try it: open the editor, drop in a custom boundary path, and watch text auto-wrap inside the new shape.</p>
          </text-block>
        </layer>
        <layer id="cta">
          <text-block size="9pt" leading="12pt" text-align="left"
                      color="color(cmyk 0 0 0 0.55)">
            <reflow-region shape="M 20,260 L 196,260 L 196,272 L 20,272 Z"/>
            <p>Spec, source and a Python reference renderer at thorntonstatistical.com/software/mpdf</p>
          </text-block>
        </layer>
      </layers>
    </canvas>

  </document>
</mdf>