Discuss this help topic in SecureBlackbox Forum



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

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


    event TSBPDFConvertStringToAnsiEvent OnConvertStringToAnsi;
    delegate void TSBPDFConvertStringToAnsiEvent(Object Sender, string Str);

    Event OnConvertStringToAnsi As TSBPDFConvertStringToAnsiEvent
    Delegate Sub TSBPDFConvertStringToAnsiEvent(ByVal Sender As Object, ByVal Str As String)

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

    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);

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


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

Return value

    Converted ANSI string.


    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