This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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
| PDF to CAD | |
| Convert a PDF file to DXF using C# sample code: | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| scConverterLib.Converter myconverter = new scConverterLib.Converter(); | |
| if (myconverter != null) | |
| { |
This file contains hidden or 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 = ""; //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. |