X to PDF

Convert XRechnung, XML & EDIFACT to PDF with Automation | PEDIF

PEDIF can generate a configured, human-readable PDF representation from structured input data.

Why It Matters

The Problem

Structured files such as XML or EDI messages are often difficult for people to read and may need an appropriate visual representation for review or communication.

The Solution

Legal or manual approval steps often require a PDF format that humans can easily read and understand.

How It Works

Input

Structured file (XRechnung, XML, EDIFACT, ZUGFeRD, etc.)

Processing

PEDIF reads the data and checks it against defined structure and required-field rules

Generation

The data is rendered into the configured, readable PDF layout

Delivery

Sends PDF via email, API, or archive system

Supported Formats

XRechnung, EDIFACT, UBL, ZUGFeRD, XML, JSON

Instant Processing

Processing time and throughput converting files to PDF often in seconds, not minutes

Why Choose PEDIF?

Template-Free Data Extraction

Structured input data and variants are specified for the target workflow

Government Validation

Input data and output can be checked against selected rules and required fields

Compliant Layouts

A readable PDF output is generated using the agreed layout

EU Hosted & GDPR

Hosted in Germany, GDPR-compliant. Read more: https://www.pedif.digital/en/security.

Flexible Delivery

Flexible delivery: Email, SFTP, AS2, or direct API integration

Real-Time Processing

Status, validation and exceptions can be made visible for operations.

X to PDF in practice: use cases, content and delivery

Structured files are made for systems, not for people. As soon as someone has to check, approve, archive or forward such a file, a readable representation is needed. The following sections describe when X to PDF is useful and what to consider.

Typical use cases

  • Incoming XRechnungen that have to be checked and approved by people who do not work with XML
  • EDI messages such as orders or invoices that need to be forwarded to colleagues or partners without EDI access
  • Readable copies of e-invoices for customer service, sales or management
  • Supplementary PDF copies for archive or document management systems that display PDFs
  • Structured exports from internal systems that should be sent to recipients as a document

What the generated PDF contains

The PDF shows the information that people need to understand the document: parties, document number and dates, references, line items with quantities and prices, taxes, totals and payment terms. Which fields are shown, in which order and with which labels is agreed for each document type.

The layout can follow your corporate design, for example with your logo, fonts and colours, so the generated documents look consistent with the rest of your communication.

Readable copy and legal original

For e-invoices, the structured file remains the legally relevant original. The generated PDF is a readable representation of its content. It is useful for review, approval and communication, but it does not replace archiving the original XML file. Keeping this distinction clear avoids problems in audits.

Because the PDF is generated directly from the structured data, it shows exactly what the file contains. Values are not retyped or reinterpreted along the way.

Different input formats

Structured files come in many variants. XRechnung exists in two syntaxes, ZUGFeRD carries its data as embedded XML, EDIFACT messages use their own segment structure, and many systems export their own XML or JSON formats. PEDIF reads the agreed input formats and maps them to one consistent representation, so the resulting PDFs look the same regardless of the source format.

Checks before rendering

Before a PDF is generated, the input file is checked against the expected structure and required fields. A file with missing or contradictory data is not silently turned into a document that looks complete. It is flagged, so the problem can be clarified with the sender.

Common input formats explained

  • XRechnung: the German e-invoice specification, available in the UBL and CII syntaxes
  • ZUGFeRD and Factur-X: hybrid invoices whose XML part can be rendered into a consistent layout
  • Peppol BIS Billing 3.0: the invoice format used in the Peppol network, based on UBL
  • EDIFACT: classic EDI messages such as INVOIC for invoices, ORDERS for orders or DESADV for despatch advices
  • Company-specific XML or JSON: exports from ERP, billing or logistics systems

Readable invoices in approval workflows

In many companies, invoices are approved by people outside accounting, for example project managers, purchasers or department heads. They need to see what is being charged, but they should not have to deal with XML. A readable PDF that is generated automatically and delivered into the approval workflow keeps the process fast and avoids queries about what an invoice actually contains.

Why not just use a viewer?

E-invoice viewers display the content of a single file on screen. That helps for occasional checks. X to PDF is designed for recurring processes: files are converted automatically as they arrive, the layout follows your design, and the PDFs are delivered to the right place, such as an archive, a mailbox or an approval system, without anyone opening a viewer.

Who benefits from readable documents

  • Accounts payable teams that approve incoming e-invoices with colleagues from other departments
  • Customer service teams that answer questions about invoices or orders
  • Sales teams that need to see what a customer has ordered or been invoiced
  • Auditors and tax advisors who review documents without access to the source systems
  • Business partners who cannot process structured formats themselves

Setting up a new output layout

A new layout starts with the document type and its most important fields. Together with you, it is defined which information appears in the header, how line items are shown, which totals and tax details are listed and where references such as order or delivery note numbers are placed. The layout is then tested with real files from your process, including special cases such as credit notes or invoices with many lines, before it goes live.

Structured data and readable documents side by side

Moving to structured formats does not mean that people stop needing documents they can read. Approvals, queries and audits still rely on a clear view of what was ordered, delivered or invoiced. X to PDF bridges this gap: systems keep working with the structured data, while people get a consistent, readable document whenever they need one.

Archiving and retrieval

Archive and document management systems often display PDFs better than XML files. Storing a readable PDF next to the original structured file makes documents easier to find and view later, for example during an audit or when a customer asks about an old invoice. The structured original remains the authoritative record, and the PDF serves as the convenient view of it.

Delivery and integration

Generated PDFs can be delivered by email, via SFTP or AS2, through an API or directly into an archive or document management system. The delivery route is agreed per use case, so the PDF arrives where it is actually needed, for example in an approval workflow or a customer service mailbox.

More questions about X to PDF

Does the PDF replace the original e-invoice?
No. For e-invoices, the structured file remains the original that has to be archived. The PDF is a readable representation for review, approval and communication.
Can the PDF use our own layout?
Yes. The layout is configured per document type and can follow your corporate design, including logo, fonts, colours and the order of the fields.
What happens with an invalid input file?
Files that do not match the expected structure or lack required fields are flagged instead of being rendered. This prevents documents that look complete but are based on incorrect data.
Can we combine X to PDF with other PEDIF services?
Yes. For example, incoming e-invoices can be made readable for approval, while outgoing PDF invoices are converted into e-invoices. Both directions can run alongside each other.
Can X to PDF process files automatically as they arrive?
Yes. Files can be picked up from a mailbox, an SFTP directory or an API call and converted without manual steps. The resulting PDFs are delivered through the agreed channel.
Is the content of the PDF checked against the original?
The PDF is generated directly from the structured data, so it reflects exactly what the file contains. Before rendering, the file itself is checked for structure and required fields.
Can different document types use different layouts?
Yes. Invoices, orders or delivery advices can each have their own layout, with the fields that matter for that document type.

FAQ

X-to-PDF means the controlled generation of a readable PDF document from structured data or other approved input formats. The layout, data fields, and output rules are defined for the respective workflow.
X-to-PDF is useful when structured data needs to be presented in a form that people can read, review, send, or archive, while the machine-readable source data remains part of the underlying system process.
Possible inputs include XML, JSON, CSV, EDI, or other clearly described data structures. Which formats are actually supported depends on the agreed mapping, schema, and target workflow.
The input data is checked against the agreed structure, assigned to the intended document fields, and transferred into an approved PDF layout. Incorrect or incomplete data must be handled through a defined exception process.
Yes. Structured data can be output in a human-readable representation. The content, sequence, and formatting shown are defined for the respective document type and purpose.
Automated output can standardize recurring representations, reduce manual formatting, and improve traceability. The actual benefit depends on volume, workflow, and integration effort.
Checks can cover technical file generation, mandatory fields, data formats, completeness, and, where required, visual presentation. A technical check does not replace business, legal, or archiving approval.
Typical use cases include finance, procurement, logistics, customer service, audit, and archiving where structured data is also required as a readable business document.
Yes, if the input format, handoff channel, target system, and error handling are clearly defined. The specific integration with ERP, DMS, EDI, API, or archive systems is assessed on a project basis.
If only machine-readable data is required, generating an additional PDF may be unnecessary. If layout requirements change frequently or source data is incomplete, another workflow should first be considered.

Ready to Make Your Structured Files Human-Readable?

Transform your XRechnung, EDIFACT, and XML files into clean, professional PDFs instantly.