Skip to content

Instantly share code, notes, and snippets.

@terjehelgesen
Created October 16, 2025 11:02
Show Gist options
  • Select an option

  • Save terjehelgesen/3702c19f678a18a4b58c1ed95c94e67e to your computer and use it in GitHub Desktop.

Select an option

Save terjehelgesen/3702c19f678a18a4b58c1ed95c94e67e to your computer and use it in GitHub Desktop.
Create a ZUGFeRD PDF/A-3 invoice from a PDF and XML file in C# using a single API call
//scConverter sample code
//Read more about scConverter online: http://www.softwarecompanions.com/scconverterdll.html
{
scConverterLib.Converter myconverter = new scConverterLib.Converter();
if (myconverter != null)
{
string errors = ""; //Will contain an error message if conversion fails
myconverter.SetSerialNumber("Your Serial Number");
//Convert the input PDF file to ZUGFeRD PDF-A/3 compliant PDF invoice by adding XML data.
myconverter.PDFCreateZUGFeRD( "input.pdf", "factur-x.xml", 15, "outputinvoice.pdf", ref errors);
}
}
@terjehelgesen
Copy link
Author

terjehelgesen commented Oct 16, 2025

Read more about scConverter online:
https://www.softwarecompanions.com/scconverterdll.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment