[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Text.CMap.CMapTable.Load

Load Method

Load(Stream)

Loads a CMapTable from a specified stream.

See the PDF spec for the description of the CMap format.

This method will throw an exception if the stream content has unknown or unsupported format.

Declaration
public static CMapTable Load(Stream stream)
Parameters
Type Name Description
Stream stream

The stream containing the CMap definition.

Returns
Type Description
CMapTable

The created CMapTable object.

Load(string, bool)

Loads a CMapTable from a specified file.

See the PDF spec for the description of the CMap format.

If compressed is true then the content of the file will be decompressed using DeflateStream.

This method will throw an exception if the file content has unknown or unsupported format.

Declaration
public static CMapTable Load(string fileName, bool compressed = false)
Parameters
Type Name Description
string fileName

The file containing the CMap definition.

bool compressed

Indicates whether the stream content is compressed and DeflateStream should be used to decompress.

Returns
Type Description
CMapTable

The created CMapTable object.