PdfEncodingExtensionsGetBytes Method |
Encodes all the characters in the specified string into a sequence of bytes.
Namespace: SautinSoft.Pdf.TextAssembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.3.13
Syntaxpublic static byte[] GetBytes(
this IPdfEncoding encoding,
string s
)
<ExtensionAttribute>
Public Shared Function GetBytes (
encoding As IPdfEncoding,
s As String
) As Byte()
Parameters
- encoding IPdfEncoding
- The encoding.
- s String
- The string containing the characters to encode.
Return Value
ByteA byte array containing the results of encoding the specified set of characters.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IPdfEncoding. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also