namespace TestConform { internal class Program { static void Main(string[] args) { scConverterLib.Converter myconverter = new scConverterLib.Converter(); if (myconverter != null) { string errors = ""; myconverter.SetSerialNumber("serial number"); myconverter.PDFConform(args[0], tagSCPDFCONFORM.SC_PDF_PDFA3B, args[1], ref errors ); //Check for errors if (errors != null) { System.Console.WriteLine("PDF conformance failed due to the following error(s):"); System.Console.WriteLine(errors); } } } } }This sample code is from the SDK scConform example project.
C# Sample code:
namespace TestConverter { internal class Program { static void Main(string[] args) { scConverterLib.Converter myconverter = new scConverterLib.Converter(); if (myconverter != null) { int fileHandle = 0, qrCount = 0; myconverter.SetSerialNumber("serial number"); myconverter.OpenFileEx(args[0], ref fileHandle); //File to open myconverter.DetectQREx(fileHandle, -1, ref qrCount); if (qrCount > 0) { //We found at least one QR code, output decoded text to console for (int i = 0;i < qrCount; i++) { string qrText = ""; myconverter.GetQRTextEx(fileHandle, i, ref qrText); Console.WriteLine(qrText); } } else { System.Console.WriteLine("No QR codes found."); } } } } }This sample code is from the SDK scExtractQR example project.