---
title: "Discussion on \"Turning PDF invoices into XRechnung with an LLM: the six safeguards that mattered more than the model\" | Hashnode"
description: "Discussion on \"Turning PDF invoices into XRechnung with an LLM: the six safeguards that mattered more than the model\". An AI-extracted e-invoice can pass every KoSIT rule and still carry the wrong total. What we check around the model: text layer only, deterministic confidence, recomputed totals, no re-reading ZUGFeRD, master data, and a draft status."
url: "https://hashnode.com/posts/turning-pdf-invoices-into-xrechnung-with-an-llm-the-six-safeguards-that-mattered-more-than-the-model/6b12ace4e8e15038d7e2003f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Turning PDF invoices into XRechnung with an LLM: the six safeguards that mattered more than the model](https://wsystem.hashnode.dev/turning-pdf-invoices-into-xrechnung-with-an-llm-the-six-safeguards-that-mattered-more-than-the-model?utm_source=hashnode&utm_medium=feed)

An AI-extracted e-invoice can pass every KoSIT rule and still carry the wrong total. What we check around the model: text layer only, deterministic confidence, recomputed totals, no re-reading ZUGFeRD, master data, and a draft status.

1d ago · 5 min read · wsystem.hashnode.dev  
Read the article

-   [#xrechnung](https://hashnode.com/tag/xrechnung)
-   [#ai](https://hashnode.com/tag/ai)
-   [#e-invoicing](https://hashnode.com/tag/e-invoicing)
-   [#api](https://hashnode.com/tag/api)
-   [#germany](https://hashnode.com/tag/germany)

## Written by

[W System](https://hashnode.com/@wsystem)

@wsystem

  
[View profile](https://hashnode.com/@wsystem)

EU VAT, company, tenders & sanctions APIs for developers and AI agents

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
