本文介绍了Wacom签名选项卡应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要一个应用程序或代码,显示如何将pdf推送到wacom签名选项卡

以及我们如何签署文档。





如何使用c#应用程序将pdf推送到wacom签名选项卡并签署一个特定区域



我尝试过:



Need a application or code showing how to push the pdf to wacom signature tab
and how we can sign the document.


how can i push a pdf to wacom signature tab using c# application and sign a specidic area

What I have tried:

String line;
StreamReader sr = new StreamReader("C:\\Wacom\\lic.txt");
line = sr.ReadLine();

print("btnSign was pressed");
SigCtl sigCtl = new SigCtl();
sigCtl.Licence = line.ToString();
DynamicCapture dc = new DynamicCaptureClass();
DynamicCaptureResult res = dc.Capture(sigCtl, "Who", "Why", null, null);
if (res == DynamicCaptureResult.DynCaptOK)
{
    print("signature captured successfully");
    SigObj sigObj = (SigObj)sigCtl.Signature;
    sigObj.set_ExtraData("AdditionalData", "C# test: Additional data");
    String filename = "sig1.png";
    sigObj.RenderBitmap(filename, 200, 150, "image/png", 0.5f, 0xff0000, 0xffffff, -1.0f, -1.0f, RBFlags.RenderOutputFilename | RBFlags.RenderColor32BPP | RBFlags.RenderEncodeData);
    sigImage.Load(filename);
}
else
{
    print("Signature capture error res=" + (int)res + "  ( " + res + " )");
    switch (res)
    {
        case DynamicCaptureResult.DynCaptCancel: print("signature cancelled"); break;
        case DynamicCaptureResult.DynCaptError: print("no capture service available"); break;
        case DynamicCaptureResult.DynCaptPadError: print("signing device error"); break;
        default: print("Unexpected error code "); break;
    }
}

推荐答案


这篇关于Wacom签名选项卡应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-22 14:53