Discuss this help topic in SecureBlackbox Forum

TElPDFSignatureWidgetProps.OnConvertStringToAnsi

TElPDFSignatureWidgetProps     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


This event is fired when there is a need to convert strings to PDF strings.

Declaration

[C#/Java]
    event TSBPDFConvertStringToAnsiEvent OnConvertStringToAnsi;
    delegate void TSBPDFConvertStringToAnsiEvent(Object Sender, string Str);

[VB.NET]
    Event OnConvertStringToAnsi As TSBPDFConvertStringToAnsiEvent
    Delegate Sub TSBPDFConvertStringToAnsiEvent(ByVal Sender As Object, ByVal Str As String)

[Pascal]
    property OnConvertStringToAnsi : TSBPDFConvertStringToAnsiEvent;
    TSBPDFConvertStringToAnsiEvent = function(Sender: TObject; const Str : string): ByteArray of object;

[C++]
    void get_OnConvertStringToAnsi(TSBPDFConvertStringToAnsiEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnConvertStringToAnsi(TSBPDFConvertStringToAnsiEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBPDFConvertStringToAnsiEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcStr, int32_t szStr);

[PHP]
    TSBPDFConvertStringToAnsiEvent|callable|NULL get_OnConvertStringToAnsi()
    void set_OnConvertStringToAnsi(TSBPDFConvertStringToAnsiEvent|callable|NULL $Value)
    callable TSBPDFConvertStringToAnsiEvent(TObject $Sender, string $Str)

Parameters

  • Str - String to be converted
  • pcStr - String to be converted
  • szStr - the length of pcStr.

Return value

    Converted ANSI string.

Description

    This event is fired if there is a need to reconvert a string (in UTF8 for VCL, except Delphi 2009 and in Unicode for others) to a PDF string, in a specific encoding (user defined encoding). The main usage is Type 1 fonts.

Discuss this help topic in SecureBlackbox Forum