---
title: "LetterLayout – API-Referenz · Quittio"
description: "Position of the address field and marks on the first page, in millimetres from the top left corner (e.g. DIN 5008 form A/B in the German country pack)."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/View/LetterLayout"
locale: de
meta:
  "og:description": "Position of the address field and marks on the first page, in millimetres from the top left corner (e.g. DIN 5008 form A/B in the German country pack)."
  "og:image": "https://quittio.dev/og/quittio-de.jpg"
  "og:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "LetterLayout – API-Referenz · Quittio"
  "twitter:image": "https://quittio.dev/og/quittio-de.jpg"
  "twitter:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
---

> Index of every page on this site: [llms.txt](https://quittio.dev/llms.txt)

[API reference](https://quittio.dev/docs/api) / [Quittio](https://quittio.dev/docs/api/Quittio) \\ [Core](https://quittio.dev/docs/api/Quittio/Core) \\ [View](https://quittio.dev/docs/api/Quittio/Core/View)

# LetterLayout

final readonly class in quittio/core

`Quittio\Core\View\LetterLayout` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/View/LetterLayout.php#L11)

Position of the address field and marks on the first page, in millimetres from the top left corner (e.g. DIN 5008 form A/B in the German country pack).

## Properties \#

| Property | Type | Description |
| --- | --- | --- |
| `$addressHeight` readonly | `float` | |
| `$addressLeft` readonly | `float` | |
| `$addressTop` readonly | `float` | |
| `$addressWidth` readonly | `float` | |
| `$addressZoneTop` readonly | `float` | start of the recipient address within the address field (DIN 5008: below the 17.7 mm "Zusatz- und Vermerkzone", whose last line holds the sender line) |
| `$foldMarks` readonly | `list<float>` | distances of fold marks from the top edge |
| `$name` readonly | `string` | |
| `$punchMark` readonly | `?float` | |
| `$senderLineHeight` readonly | `float` | |

## Methods \#

| Method | Description |
| --- | --- |
| `->__construct()` | |
| `::free()` | Layout without norm: address field where the default template places it. |
| `->letterheadHeight()` | Height of the letterhead above the address field for a given top page margin. |

### `__construct()`#

```
public function __construct(
    string $name,
    float $addressTop = 45.0,
    float $addressLeft = 20.0,
    float $addressWidth = 85.0,
    float $addressHeight = 45.0,
    float $senderLineHeight = 5.0,
    list<float> $foldMarks = [],
    ?float $punchMark = null,
    float $addressZoneTop = 17.7,
)
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$name` | `string` | |
| `$addressTop` | `float` = `45.0` | |
| `$addressLeft` | `float` = `20.0` | |
| `$addressWidth` | `float` = `85.0` | |
| `$addressHeight` | `float` = `45.0` | |
| `$senderLineHeight` | `float` = `5.0` | |
| `$foldMarks` | `list<float>` = `[]` | distances of fold marks from the top edge |
| `$punchMark` | `?float` = `null` | |
| `$addressZoneTop` | `float` = `17.7` | start of the recipient address within the address field (DIN 5008: below the 17.7 mm "Zusatz- und Vermerkzone", whose last line holds the sender line) |

### `free()`#

```
public static function free(): self
```

static

Layout without norm: address field where the default template places it.

<dl><dt>Returns</dt>
<dd><code>self</code></dd>
</dl>

### `letterheadHeight()`#

```
public function letterheadHeight(float $pageMarginTop): float
```

Height of the letterhead above the address field for a given top page margin.

| Parameter | Type | Description |
| --- | --- | --- |
| `$pageMarginTop` | `float` | |

<dl><dt>Returns</dt>
<dd><code>float</code></dd>
</dl>

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/#website","@type":"WebSite","description":"E-Rechnungen für PHP und Laravel: ZUGFeRD, XRechnung und Peppol erstellen, prüfen, lesen und archivieren.","inLanguage":"de-DE","name":"Quittio","url":"https://quittio.dev/","publisher":{"@id":"https://quittio.dev/#identity"},"workTranslation":{"@id":"https://quittio.dev/en#website"}},{"@id":"https://quittio.dev/docs/api/Quittio/Core/View/LetterLayout#webpage","@type":"WebPage","description":"Position of the address field and marks on the first page, in millimetres from the top left corner (e.g. DIN 5008 form A/B in the German country pack).","name":"LetterLayout – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/View/LetterLayout","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/View/LetterLayout"]}],"primaryImageOfPage":{"@id":"https://quittio.dev/#logo"}},{"@id":"https://quittio.dev/#identity","@type":"Organization","description":"Open-Source-Bibliothek für E-Rechnungen in PHP und Laravel (ZUGFeRD, XRechnung, Peppol) und Quittio Managed.","email":"kontakt@niklasforst.de","legalName":"Niklas Forst – Softwareentwicklung","name":"Quittio","url":"https://quittio.dev","founder":{"@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},"logo":{"@id":"https://quittio.dev/#logo"},"sameAs":["https://github.com/Quittio/quittio","https://packagist.org/packages/quittio/quittio"]},{"@id":"https://quittio.dev/#logo","@type":"ImageObject","caption":"Quittio","contentUrl":"https://quittio.dev/logo.png","inLanguage":"de-DE","url":"https://quittio.dev/logo.png"}]}
```