---
title: "SwissCross – API reference · Quittio"
description: "The Swiss cross printed in the middle of the Swiss QR Code (7 × 7 mm, guidelines 6.4.2): a black square with a white border and the white cross, as PNG (PDF/A allows no SVG of mPDF)."
canonical_url: "https://quittio.dev/en/docs/api/Quittio/Country/CH/QrBill/SwissCross"
locale: en
meta:
  "og:description": "The Swiss cross printed in the middle of the Swiss QR Code (7 × 7 mm, guidelines 6.4.2): a black square with a white border and the white cross, as PNG (PDF/A allows no SVG of mPDF)."
  "og:image": "https://quittio.dev/og/quittio-en.jpg"
  "og:image:alt": "Quittio: Invoices, settled. E-invoicing for PHP and Laravel, with a validated sample invoice."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "SwissCross – API reference · Quittio"
  "twitter:image": "https://quittio.dev/og/quittio-en.jpg"
  "twitter:image:alt": "Quittio: Invoices, settled. E-invoicing for PHP and Laravel, with a validated sample invoice."
---

> 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) \\ [Country](https://quittio.dev/docs/api/Quittio/Country) \\ [CH](https://quittio.dev/docs/api/Quittio/Country/CH) \\ [QrBill](https://quittio.dev/docs/api/Quittio/Country/CH/QrBill)

# SwissCross

final class in quittio/country-ch

`Quittio\Country\CH\QrBill\SwissCross` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/country-ch/src/QrBill/SwissCross.php#L11)

The Swiss cross printed in the middle of the Swiss QR Code (7 × 7 mm, guidelines 6.4.2): a black square with a white border and the white cross, as PNG (PDF/A allows no SVG of mPDF).

## Constants \#

| Constant | Value | Description |
| --- | --- | --- |
| `SIZE` | `168` | Pixels of the image: 7 mm at about 600 dpi. |

## Methods \#

| Method | Description |
| --- | --- |
| `::dataUri()` | The cross as PNG data URI; null without GD. |

### `dataUri()`#

```
public static function dataUri(): ?string
```

static

The cross as PNG data URI; null without GD.

<dl><dt>Returns</dt>
<dd><code>?string</code></dd>
</dl>

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/en#website","@type":"WebSite","description":"E-invoicing for PHP and Laravel: create, validate, read and archive ZUGFeRD, XRechnung and Peppol invoices.","inLanguage":"en","name":"Quittio","url":"https://quittio.dev/en","publisher":{"@id":"https://quittio.dev/#identity"},"translationOfWork":{"@id":"https://quittio.dev/#website"}},{"@id":"https://quittio.dev/en/docs/api/Quittio/Country/CH/QrBill/SwissCross#webpage","@type":"WebPage","description":"The Swiss cross printed in the middle of the Swiss QR Code (7 × 7 mm, guidelines 6.4.2): a black square with a white border and the white cross, as PNG (PDF/A allows no SVG of mPDF).","name":"SwissCross – API reference","url":"https://quittio.dev/en/docs/api/Quittio/Country/CH/QrBill/SwissCross","isPartOf":{"@id":"https://quittio.dev/en#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/en/docs/api/Quittio/Country/CH/QrBill/SwissCross"]}],"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":"en","url":"https://quittio.dev/logo.png"}]}
```