Coder Social home page Coder Social logo

landrixsoftware / zugferd-for-delphi Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 3.0 136.85 MB

ZUGFeRD / Factur-X Implementation for Delphi

License: Apache License 2.0

Pascal 63.94% Batchfile 0.02% XSLT 35.99% PowerShell 0.05%
delphi zugferd factur-x invoice e-invoice xml pdf en16931 ebusiness invoicing

zugferd-for-delphi's Introduction

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/

zugferd-for-delphi's People

Contributors

landrix avatar petersawatzki-mggm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.