Click or drag to resize

PdfEncodingExtensionsGetString Method

Decodes a sequence of bytes from the specified byte array into a string.

Namespace:  GemBox.Pdf.Text
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 13.0.35.1000
Syntax
public static string GetString(
	this IPdfEncoding encoding,
	byte[] bytes
)

Parameters

encoding
Type: GemBox.Pdf.TextIPdfEncoding
The encoding.
bytes
Type: SystemByte
The byte array containing the sequence of bytes to decode.

Return Value

Type: String
A string that contains the results of decoding the specified sequence of bytes.

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 bytes is .
See Also