This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//scConverter Sample Code | |
//Read more about scConverter online: http://www.softwarecompanions.com/scconverterdll.html | |
{ | |
scConverterLib.Converter myconverter = new scConverterLib.Converter(); | |
if (myconverter != null) | |
{ | |
myconverter.SetSerialNumber("Your Serial Number"); | |
//Select PDF/A-4e as standard for output | |
myconverter.PDFWriteFormat = 7; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int ConvertPDFtoPDFA( WCHAR *SerialNumber, WCHAR *InputFile, WCHAR *OutputFile, int ConformStandard, BSTR *bstrErrors) | |
{ | |
//Declare Conform function | |
typedef int ( *SC_CONFORM_FILE)(WCHAR *SerialNumber, WCHAR *InputFileName, int ConformStandard, WCHAR *OutputFileName, BSTR *Errors); | |
//Load scConverter.dll | |
HINSTANCE hLib = LoadLibraryExW( L"scConverter.dll", nullptr, LOAD_WITH_ALTERED_SEARCH_PATH ); | |
if (!hLib) return -1; | |
//Get Conform function pointer |