---
title: "PendingDocument – API-Referenz · Quittio"
description: "Fluent render call for documents: Quittio::document($quote)->locale('de')->render()."
canonical_url: "https://quittio.dev/docs/api/Quittio/Laravel/Rendering/PendingDocument"
locale: de
meta:
  "og:description": "Fluent render call for documents: Quittio::document($quote)->locale('de')->render()."
  "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": "PendingDocument – 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)

# PendingDocument

final class in quittio/laravel · uses `Illuminate\Support\Traits\Macroable`

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

Fluent render call for documents: Quittio::document($quote)->locale('de')->render().

## Methods \#

| Method | Description |
| --- | --- |
| `->__construct()` | |
| `->country()` | Leading country pack of this call (ISO 3166-1 alpha-2), instead of the seller's country. |
| `->data()` | The document of this call, as passed (not calculated). |
| `->htmlOnly()` | Renders the template only, without PDF (format "html"). |
| `->locale()` | Locale of this call; wins over the document locale and the configuration. |
| `->option()` | Output option of this call, e.g. option('fold\_marks', false); see the output configuration. |
| `->options()` | The options collected so far, as passed to the render run. |
| `->presentation()` | Design defaults of this call; the document's own presentation wins. |
| `->queue()` | Renders in a queued job: Quittio::document($quote)->queue()->save('documents', $path). |
| `->render()` | Calculates and renders the document with the events DocumentRendering and DocumentRendered, see Quittio::renderDocument(). |
| `->template()` | Template of this call; the same selection rules as for invoices. |

### `__construct()`#

```
public function __construct(QuittioManager $manager, DocumentData $data)
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$manager` | `[QuittioManager](https://quittio.dev/docs/api/Quittio/Laravel/QuittioManager)` | |
| `$data` | `[DocumentData](https://quittio.dev/docs/api/Quittio/Core/Documents/DocumentData)` | |

### `country()`#

```
public function country(string $country): static
```

Leading country pack of this call (ISO 3166-1 alpha-2), instead of the seller's country.

| Parameter | Type | Description |
| --- | --- | --- |
| `$country` | `string` | |

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

### `data()`#

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

The document of this call, as passed (not calculated).

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

### `htmlOnly()`#

```
public function htmlOnly(): static
```

Renders the template only, without PDF (format "html").

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

### `locale()`#

```
public function locale(string $locale): static
```

Locale of this call; wins over the document locale and the configuration.

| Parameter | Type | Description |
| --- | --- | --- |
| `$locale` | `string` | |

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

### `option()`#

```
public function option(string $key, mixed $value): static
```

Output option of this call, e.g. option('fold\_marks', false); see the output configuration.

| Parameter | Type | Description |
| --- | --- | --- |
| `$key` | `string` | |
| `$value` | `mixed` | |

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

### `options()`#

```
public function options(): RenderOptions
```

The options collected so far, as passed to the render run.

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

### `presentation()`#

```
public function presentation(Presentation $presentation): static
```

Design defaults of this call; the document's own presentation wins.

| Parameter | Type | Description |
| --- | --- | --- |
| `$presentation` | `[Presentation](https://quittio.dev/docs/api/Quittio/Core/Data/Presentation/Presentation)` | |

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

### `queue()`#

```
public function queue(?string $connection = null, ?string $queue = null): QueuedDocument
```

Renders in a queued job: Quittio::document($quote)->queue()->save('documents', $path).

| Parameter | Type | Description |
| --- | --- | --- |
| `$connection` | `?string` = `null` | |
| `$queue` | `?string` = `null` | |

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

### `render()`#

```
public function render(): RenderedDocument
```

Calculates and renders the document with the events DocumentRendering and DocumentRendered, see Quittio::renderDocument().

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Laravel/Rendering/RenderedDocument">RenderedDocument</a></code></dd>
<dt>Throws</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Calculation/CalculationException">CalculationException</a></code> – when the document cannot be calculated</dd>
<dt>Throws</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Pdf/PdfException">PdfException</a></code> – when the PDF cannot be rendered</dd></dl>

### `template()`#

```
public function template(string $template): static
```

Template of this call; the same selection rules as for invoices.

| Parameter | Type | Description |
| --- | --- | --- |
| `$template` | `string` | |

<dl><dt>Returns</dt>
<dd><code>static</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/PendingDocument#webpage","@type":"WebPage","description":"Fluent render call for documents: Quittio::document($quote)->locale('de')->render().","name":"PendingDocument – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Laravel/Rendering/PendingDocument","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Laravel/Rendering/PendingDocument"]}],"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"}]}
```