Skip to content

# PDFEncoding

Namespace: O2S.Components.PDF4NET.Core.Encodings

Defines the base class for all encodings in a PDF file.

    public class PDFEncoding

Inheritance Object → PDFEncoding

## Constructors

### PDFEncoding()

    public PDFEncoding()

## Methods

### CreateEncoding(String)

Creates an encoding based on an encoding file definition.

    public static PDFEncoding CreateEncoding(string path)

Parameters

`path` String
Path to encoding file definition.

Returns

PDFEncoding
The encoding object if it has been created with success.

### CreateEncoding(Stream)

Creates an encoding based on an encoding file definition.

    public static PDFEncoding CreateEncoding(Stream stream)

Parameters

`stream` Stream
Stream storing the encoding definition.

Returns

PDFEncoding
The encoding object if it has been created with success.