Click or drag to resize

PdfEncodingExtensionsGetBytes Method

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

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

Parameters

encoding
Type: GemBox.Pdf.TextIPdfEncoding
The encoding.
s
Type: SystemString
The string containing the characters to encode.

Return Value

Type: 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionencoding or s is .
See Also