> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ausgabeformate

FineParser gibt jedes geparste Dokument in einem von drei Formaten zurück. Die Formate unterscheiden sich darin, wie viel der Dokumentstruktur sie bewahren und wie diese kodiert wird.

<h2 id="setting-the-output-format">
  Ausgabeformat festlegen
</h2>

Übergeben Sie das Feld `outputType` bei jeder Anfrage. Es gibt keinen Standardwert, daher muss jede Anfrage ein Format angeben. Anders als Recognition mode und Sprache wird das Format pro Anfrage gewählt, sodass ein Container alle drei Formate bedienen kann.

<CodeGroup>
  ```bash cURL theme={null}
  curl -s -X POST http://localhost:8080/parse \
    -F "file=@invoice.pdf" \
    -F "outputType=json"
  ```

  ```python Python theme={null}
  import requests

  with open("invoice.pdf", "rb") as f:
      submitted = requests.post(
          "http://localhost:8080/parse",
          files={"file": f},
          data={"outputType": "json"},
      )
  job_id = submitted.json()["jobId"]
  ```

  ```javascript Node.js theme={null}
  import { openAsBlob } from "node:fs";

  const form = new FormData();
  form.append("file", await openAsBlob("invoice.pdf"), "invoice.pdf");
  form.append("outputType", "json");

  const submitted = await fetch("http://localhost:8080/parse", {
    method: "POST",
    body: form,
  });
  const { jobId } = await submitted.json();
  ```
</CodeGroup>

Die Übermittlung liefert eine Job-ID zurück. Fragen Sie den Job ab und laden Sie das Ergebnis herunter, wie unter [REST API](/de/fine-parser/concepts/rest-api#how-a-parse-works) beschrieben. Die heruntergeladene Datei trägt den Namen der hochgeladenen Datei, ergänzt um das Format – eine nach JSON geparste `invoice.pdf` erhalten Sie also als `invoice.pdf.json`.

| Ausgabetyp | Am besten geeignet für                 | Struktur | Positionen |
| ---------- | -------------------------------------- | -------- | ---------- |
| `doclang`  | LLM-Prompts, RAG, Agents               | Ja       | Ja         |
| `json`     | Anwendungscode, Verarbeitungspipelines | Ja       | Ja         |
| `txt`      | Suchindexierung, einfache Extraktion   | Nein     | Nein       |

<h2 id="doclang">
  DocLang
</h2>

DocLang ist ein offener, KI-nativer Dokumentenstandard einer Arbeitsgruppe, die von IBM, NVIDIA, Red Hat, ABBYY, HumanSignal und Forgis gegründet wurde. Es ist das von uns empfohlene Format, und FineParser schreibt es in eine einzelne `.doclang`-Datei. Siehe [DocLang](/de/fine-parser/concepts/doclang).

<h2 id="json">
  JSON
</h2>

Die JSON-Ausgabe enthält den Dokumenttitel, Seiten, Text, Tabellen und Layout-Elemente – jeweils mit Begrenzungsrahmen (Bounding Boxes).

<h2 id="plain-text">
  Klartext
</h2>

Klartext gibt den erkannten Text in Lesereihenfolge ohne Markup zurück.
