Skip to content

LandrixSoftware/ZUGFeRD-for-Delphi

Folders and files

NameName
Last commit message
Last commit date
Dec 15, 2020
Nov 27, 2024
Oct 29, 2024
Sep 25, 2020
Oct 17, 2024
Aug 19, 2024
Oct 7, 2024
Oct 29, 2024
May 22, 2023
Sep 12, 2024
Jun 15, 2020
Feb 17, 2025
Feb 17, 2025
Feb 17, 2025
Jun 5, 2024
May 26, 2023
Jan 19, 2025
May 26, 2023
Jun 7, 2024
Oct 7, 2024
Jun 5, 2024
May 26, 2023
May 26, 2023
Jan 26, 2025
May 30, 2023
May 30, 2023
Aug 19, 2024
Feb 25, 2025
Jan 26, 2025
Feb 24, 2025
Feb 24, 2025
May 23, 2024
Dec 21, 2023
Oct 7, 2024
Jul 30, 2024
May 30, 2023
Jul 19, 2024
May 26, 2023
Feb 24, 2025
Mar 20, 2025
Jan 19, 2025
Feb 27, 2025
Feb 26, 2025
Mar 5, 2025
Mar 5, 2025
Mar 5, 2025
Oct 7, 2024
Oct 7, 2024
Mar 5, 2025
Mar 8, 2025
Oct 7, 2024
Aug 19, 2024
Jul 30, 2024
Jan 7, 2025
Oct 28, 2023
Jun 5, 2024
Oct 7, 2024
Jun 2, 2023
Jun 13, 2023
Oct 7, 2024
Feb 27, 2025
Jan 18, 2025
Jun 12, 2023
Feb 24, 2025
Oct 7, 2024
Aug 13, 2024
Mar 8, 2025
Feb 17, 2025
Feb 17, 2025
May 30, 2023
Jun 7, 2023
Feb 18, 2025
Jun 7, 2023
Feb 26, 2025
Feb 24, 2025
Feb 13, 2025
Feb 20, 2025
Jun 5, 2023
Jun 5, 2023
Jun 6, 2023
Feb 26, 2025
Jul 30, 2024
Feb 26, 2025
Oct 7, 2024
Feb 10, 2025
Feb 10, 2025

Repository files navigation

Donate

ZUGFeRD-for-Delphi

The ZUGFeRD library allows to create XML files as required by German electronic invoice initiative ZUGFeRD as well invoices in the successor Factur-X. One special profile of Factur-X is the German XRechnung format. The library is meant to be as simple as possible, however it is not straight forward to use as the resulting XML file contains a complete invoice in XML format. Please take a look at the ZUGFeRD-Test project to find sample creation code. This code creates the same XML file as shipped with the ZUGFeRD information package.

License

Subject to the Apache license https://www.apache.org/licenses/LICENSE-2.0.html

TODO

Tests and writing support for ZUGFeRD invoices are still missing.

Usage

More examples will come soon.

Extracting xml attachments from pdf files

You can use the PDFtk Server tool to extract the xml attachment from a pdf file. The tool is available at https://www.pdflabs.com/tools/pdftk-server/

A wrapper for the tool is available at unit intf.ZUGFeRDHelper.pas

var pdfAsStream : TStream;
var cmdOutput : String;

if GetZUGFeRDPdfHelper.SetPdfTkServerPath('C:\Program Files (x86)\PDFtk Server')
                      .PdfTkServerGetZUGFeRDPdfAttachment('zugferd.pdf',
                      pdfAsStream,
                      cmdOutput) then
try
  System.Write(cmdOutput);
finally
  pdfAsStream.Free;
end;

Links

You can find more information about ZUGFeRD here: http://www.ferd-net.de/

https://www.ferd-net.de/standards/zugferd-2.2/zugferd-2.2.html

Validation

https://ecosio.com/de/peppol-und-xml-dokumente-online-validieren/

https://invoice-portal.de/xrechnung-peppol-bis-zugferd-validator/

https://www.zugferd-community.net/de/open_community/validation