XFINIUM.PDF Documentation
EncodeString Method (PdfTrueTypeFont)



Xfinium.Pdf.Graphics Namespace > PdfTrueTypeFont Class : EncodeString Method
String to convert.
Encodes the given text to a byte array based on font's encoding.
Syntax
'Declaration
 
Public Overrides Function EncodeString( _
   ByVal text As String _
) As Byte()
'Usage
 
Dim instance As PdfTrueTypeFont
Dim text As String
Dim value() As Byte
 
value = instance.EncodeString(text)
public override byte[] EncodeString( 
   string text
)
public:
array<byte>^ EncodeString( 
   String^ text
) override 

Parameters

text
String to convert.

Return Value

An array of bytes representing the string according to font encoding.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfTrueTypeFont Class
PdfTrueTypeFont Members