Click or drag to resize

PdfEncodingExtensionsGetBytes Method

Encodes all the characters in the specified string into a sequence of bytes.

Namespace: SautinSoft.Pdf.Text
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.3.13
Syntax
public static byte[] GetBytes(
	this IPdfEncoding encoding,
	string s
)

Parameters

encoding  IPdfEncoding
The encoding.
s  String
The string containing the characters to encode.

Return Value

Byte
A 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