Skip to content

Latest commit

 

History

History
43 lines (22 loc) · 2.77 KB

README.MD

File metadata and controls

43 lines (22 loc) · 2.77 KB

EHF attachment xml to pdf converter

I programmed this code, because many invoice software when not send out correct, they store the pdf as xml. So this is for converting it back to PDF so we can read what invoice is is , and then can be resend or imported to main software.

Reference

EHF Overview

EHF Standards Difi

EHF

EHF is an anagram of the Norwegian expression << E lektronisk h andels f ormat>> (Electronic Commerce Format).

EHF is the standard format for electronic invoices and credit notes for the public sector of Norway. It is based on the XML format UBL 2.0 and on business processes or profiles defined by the European wide CEN/BII workshop. Invoices in EHF format meet the requirements of the Norwegian Accounting Act. The EHF standard is maintained by DIFI, the Agency for Public Management and eGovernment in Norway. Since the IBX Connect platform is an official PEPPOL AccessPoint EHF Invoices, CreditNotes and Reminders can be exchanged via the PEPPOL infrastructure as well as via the standard IBX Connect interfaces: via HTTPs and FTPs/SFTP with or without SOAP envelope.
During autumn 2013 an implementation guide also for orders and orderresponses according to EHF and UBL 2.1 standards will be released officially. Examples of purchase orders and orderresponses fulfilling the EHF requirements can be found on this website.

How to

simply drag the xml into convert_attachment.py

or from command prompt

convert_attachment.py file.xml

Test files

EHF Invoice examples

EHF Invoice example with standard elements and SOAP 1.2 envelope including an embedded attachment

EHF Invoice examples

EHF CreditNote example with standard elements and SOAP 1.2 envelope including an embedded attachment

Screenshot

after conversion you should have a copy of the invoice.(note this is not the test files)

invoice