---
title: "RenderedDocument – API-Referenz · Quittio"
description: "Rendered quote, delivery note, reminder or statement for Laravel."
canonical_url: "https://quittio.dev/docs/api/Quittio/Laravel/Rendering/RenderedDocument"
locale: de
meta:
  "og:description": "Rendered quote, delivery note, reminder or statement for Laravel."
  "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": "RenderedDocument – 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) \\ [Laravel](https://quittio.dev/docs/api/Quittio/Laravel) \\ [Rendering](https://quittio.dev/docs/api/Quittio/Laravel/Rendering)

# RenderedDocument

final class in quittio/laravel · implements `Illuminate\Contracts\Mail\Attachable`, `Illuminate\Contracts\Support\Responsable` · uses [`DeliversFile`](https://quittio.dev/docs/api/Quittio/Laravel/Rendering/DeliversFile)

`Quittio\Laravel\Rendering\RenderedDocument` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/laravel/src/Laravel/Rendering/RenderedDocument.php#L15)

Rendered quote, delivery note, reminder or statement for Laravel.

## Methods \#

| Method | Description |
| --- | --- |
| `->__construct()` | |
| `->contents()` | |
| `->core()` | |
| `->data()` | |
| `->download()` | |
| `->filename()` | |
| `->hasPdf()` | Whether a PDF was rendered (false after htmlOnly()). |
| `->html()` | |
| `->mimeType()` | |
| `->notices()` | Plausibility hints on the document, e.g. a reminder that claims reminder fees besides the flat rate (see Quittio\\Core\\Documents\\DocumentData::notices()). |
| `->pdf()` | |
| `->save()` | Stores the main output on a filesystem disk (default: quittio.storage.disk). |
| `->stream()` | |
| `->toMailAttachment()` | |
| `->toResponse()` | |

### `__construct()`#

```
public function __construct(RenderedDocument $result)
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$result` | `[RenderedDocument](https://quittio.dev/docs/api/Quittio/Core/Rendering/RenderedDocument)` | |

### `contents()`#

```
public function contents(): string
```

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

### `core()`#

```
public function core(): RenderedDocument
```

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Rendering/RenderedDocument">RenderedDocument</a></code></dd>
</dl>

### `data()`#

```
public function data(): DocumentData
```

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Documents/DocumentData">DocumentData</a></code></dd>
</dl>

### `download()`#

```
public function download(?string $filename = null): Response
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$filename` | `?string` = `null` | |

<dl><dt>Returns</dt>
<dd><code>Symfony\Component\HttpFoundation\Response</code></dd>
</dl>

### `filename()`#

```
public function filename(?string $extension = null): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$extension` | `?string` = `null` | |

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

### `hasPdf()`#

```
public function hasPdf(): bool
```

Whether a PDF was rendered (false after htmlOnly()).

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

### `html()`#

```
public function html(): string
```

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

### `mimeType()`#

```
public function mimeType(): string
```

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

### `notices()`#

```
public function notices(): list<ValidationMessage>
```

Plausibility hints on the document, e.g. a reminder that claims reminder fees besides the flat rate (see Quittio\\Core\\Documents\\DocumentData::notices()).

<dl><dt>Returns</dt>
<dd><code>list&lt;<a href="https://quittio.dev/docs/api/Quittio/Core/Validation/ValidationMessage">ValidationMessage</a>&gt;</code></dd>
</dl>

### `pdf()`#

```
public function pdf(): string
```

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

### `save()`#

```
public function save(?string $disk = null, ?string $path = null): string
```

Stores the main output on a filesystem disk (default: quittio.storage.disk).

| Parameter | Type | Description |
| --- | --- | --- |
| `$disk` | `?string` = `null` | |
| `$path` | `?string` = `null` | |

<dl><dt>Returns</dt>
<dd><code>string</code> – the stored path</dd>
<dt>Throws</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Exceptions/RuntimeException">RuntimeException</a></code> – when the disk does not store the file</dd></dl>

### `stream()`#

```
public function stream(?string $filename = null): Response
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$filename` | `?string` = `null` | |

<dl><dt>Returns</dt>
<dd><code>Symfony\Component\HttpFoundation\Response</code></dd>
</dl>

### `toMailAttachment()`#

```
public function toMailAttachment(): Attachment
```

<dl><dt>Returns</dt>
<dd><code>Illuminate\Mail\Attachment</code></dd>
</dl>

### `toResponse()`#

```
public function toResponse(Request $request): Response
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$request` | `Illuminate\Http\Request` | |

<dl><dt>Returns</dt>
<dd><code>Symfony\Component\HttpFoundation\Response</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/Laravel/Rendering/RenderedDocument#webpage","@type":"WebPage","description":"Rendered quote, delivery note, reminder or statement for Laravel.","name":"RenderedDocument – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Laravel/Rendering/RenderedDocument","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Laravel/Rendering/RenderedDocument"]}],"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"}]}
```