3. Schneller Einstieg
3.4. CoMod.Net Wrapper-Beispiel für CIB pdf toolbox (C#):
using System;
using System.Text;
using de.cib.comod;
using de.cib.comod.native;
namespace de.cib.comod.sample.native
{
Class TestPdfToolboxStep
{
public static string m_workingDir = @".\..\..\..\";
static void main(String[] args)
{
private static void TestPdfToolboxStep()
{
Console.WriteLine("Testing CIB pdf toolbox step.");
try
{
//Load library
CibPdfToolbox pdfToolboxStep = new CibPdfToolbox();
//Get version
String pdfToolboxVersion = pdfToolboxStep.GetVersionText();
Console.WriteLine("Version: " + pdfToolboxVersion);
//CIB pdf toolbox: Join step
pdfToolbox.ClearProperties();
pdfToolbox.SetProperty(ICibPdfToolbox.Property_TraceFilename, m_workingDir + "toolbox.log");
pdfToolbox.SetProperty(ICibPdfToolbox.Property_InputFilename, m_workingDir + "out.pdf;" + m_workingDir + "out.pdf");
pdfToolbox.SetProperty(ICibPdfToolbox.Property_OutputFilename, m_workingDir + "final_out.pdf");
pdfToolbox.SetProperty(ICibPdfToolbox.Property_LicenseCompany, "Master");
pdfToolbox.SetProperty(ICibPdfToolbox.Property_LicenseKey, "acaa-c09f-43cc4ecd");
pdfToolbox.Join();
}
catch (Exception e)
{
Console.WriteLine("CIB pdf toolbox error:'{0}'", e);
}
}
}
}