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:
public static byte[] GetBytes(
	this IPdfEncoding encoding,
	string s


Type: GemBox.Pdf.TextIPdfEncoding
The encoding.
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).
ArgumentNullExceptionencoding or s is .
See Also