Interface IExtraEncoding
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
Classes implementing this interface can create custom encodings or replace existing ones. It is used in the context of PdfEncoding . @author Paulo Soares (psoares@consiste.pt)
public interface IExtraEncoding
Methods
ByteToChar(byte[], string)
Converts a byte array to an Unicode string according to some encoding. supports more than one encoding.
string ByteToChar(byte[] b, string encoding)
Parameters
b
byte[]the input byte array
encoding
stringthe requested encoding. It's mainly of use if the same class
Returns
- string
the conversion or null if no conversion is supported
CharToByte(char, string)
Converts an Unicode char to a byte array according to some encoding. supports more than one encoding.
byte[] CharToByte(char char1, string encoding)
Parameters
char1
charthe Unicode char
encoding
stringthe requested encoding. It's mainly of use if the same class
Returns
- byte[]
the conversion or null if no conversion is supported
CharToByte(string, string)
Converts an Unicode string to a byte array according to some encoding. supports more than one encoding.
byte[] CharToByte(string text, string encoding)
Parameters
text
stringthe Unicode string
encoding
stringthe requested encoding. It's mainly of use if the same class
Returns
- byte[]
the conversion or null if no conversion is supported