Skip to content

Instantly share code, notes, and snippets.

@terjehelgesen
Last active August 16, 2024 11:01
Show Gist options
  • Save terjehelgesen/a30c671d919e6d5352ef282a9b11db25 to your computer and use it in GitHub Desktop.
Save terjehelgesen/a30c671d919e6d5352ef282a9b11db25 to your computer and use it in GitHub Desktop.
Convert a PDF file to PDF/A standard using C#
//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 = "";
myconverter.SetSerialNumber("Your Serial Number");
//Convert input file to PDF-A/4
myconverter.PDFConform( "input.pdf", tagSCPDFCONFORM.SC_PDF_PDFA4, "output.pdf", ref errors);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment