Karthik M
Karthik M

Reputation: 1

How to convert a normal invoice PDF to Zugfered XRechnung format file in C#?

I am trying to convert a German invoice PDF to Zugfered format using C# ZUGFeRD-csharp (s2industries) library. Its works fine in B2B (Business to Business) with using below line

ZUGFeRDVersion.Version21, s2industries.ZUGFeRD.Profile.Comfort

But user wants to B2G (Business to Government) XRechnung format. I just changed to below line

ZUGFeRDVersion.Version21, s2industries.ZUGFeRD.Profile.XRechnung

But getting below exception,

Invalid Factur-X URN: 'urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.2

Even i downloaded Zugfered 2.1.1 version, and replaced my existing schema xsd like Basic, Basic WL,en16931,extended and minimum.

Upvotes: 0

Views: 849

Answers (1)

Karthik M
Karthik M

Reputation: 1

I have updated the zugfered version 2.1.1 Schema like Basic, Basic WL,en16931,extended and minimum.

Upvotes: 0

Related Questions