Hi to All!
I would like the code sample for Digital Signature in vb.net or vb6, thus signing and how to convert the hash text to binary in order to pass the info to the driver.
This code in the related post...
Code: Select all
m_pPrinter->Option[L"Digisig.Enabled"] = TRUE;
const char *hash="\xa2\xaa\xa1\x4e\xca\x9d\x3c\xee\xf1\x2b\x6b\xf4\x2f\x4f\x6c\x86\x0d\x5e\xf3\xf1";
m_pPrinter->Option[L"Digisig.Hash"] = hash;
m_pPrinter->ApplyOptions(0);
Also, as some people has commented, there is an error in the name, sometimes DigSig and others DigiSigTo specify binary data, you can pass them as a SAFEARRAY or BSTR.
https://help.pdf-xchange.com/DEV/de ... natures.29
(not sure if linking help pages works)
please see the attached image
Thanks in advance.
Happy new year!