Discuss this help topic in SecureBlackbox Forum

Put unicode characters to signature widget

To put national characters to the widget text, you need to put the whole text in unicode and also to include a font, which will be used to display the widget, to the document.

Putting the text to the widget in .NET is trivial:

Sig.WidgetProps.SignerCaption = "My Unicode text"

Putting the text to the widget in VCL can be done as follows: Sig.WidgetProps.SignerCaption := SBUtils.StringOfBytes(SBUtils.WideStrToUTF8('My Unicode text'))

To embed a font, see TinySigner sample, shipped with SecureBlackbox.

Notes

  • PDF 1.2 doesn't support font embedding.
  • When you embed the whole font, the size of the document increases significantly. As you only need a subset of the font (a couple of characters), you can use a tool on http://ttf2pt1.sourceforge.net/ to create a font subset.

How To articles about PDF signing

Discuss this help topic in SecureBlackbox Forum