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

# PendingDocument

final class in quittio/core

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

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. |
| `->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. |
| `->presentation()` | Design defaults of this call; the document's own presentation wins. |
| `->render()` | Calculates and renders the document, see Quittio::renderDocument(). |
| `->template()` | Template of this call; the same selection rules as for invoices. |

### `__construct()`#

```
public function __construct(Quittio $quittio, DocumentData $data)
```

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

### `country()`#

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

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>self</code></dd>
</dl>

### `htmlOnly()`#

```
public function htmlOnly(): self
```

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

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

### `locale()`#

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

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

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

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

### `option()`#

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

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>self</code></dd>
</dl>

### `presentation()`#

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

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>self</code></dd>
</dl>

### `render()`#

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

Calculates and renders the document, see Quittio::renderDocument().

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/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): self
```

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

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

<dl><dt>Returns</dt>
<dd><code>self</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/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/Core/Rendering/PendingDocument","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/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"}]}
```