Click here to Skip to main content
15,921,840 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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;
    }
}
Posted
Updated 28-Mar-19 1:44am
v2
Comments
Richard MacCutchan 28-Mar-19 4:43am    
What is the question?

1 solution

Have you read either of these articles and applied the knowledge you learned?
How to Sign a PDF With a Wacom Tablet | It Still Works[^]
Signing PDFs using the Topaz Digital Signature Pad[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900