Table of Contents

Class PdfString

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

Represents a direct text string value.

public sealed class PdfString : PdfItem, ICloneable
Inheritance
PdfString
Implements
Inherited Members

Constructors

PdfString()

Initializes a new instance of the PdfString class.

public PdfString()

PdfString(string)

Initializes a new instance of the PdfString class.

public PdfString(string value)

Parameters

value string

The value.

PdfString(string, PdfStringEncoding)

Initializes a new instance of the PdfString class.

public PdfString(string value, PdfStringEncoding encoding)

Parameters

value string

The value.

encoding PdfStringEncoding

The encoding.

Properties

Encoding

Gets the encoding.

public PdfStringEncoding Encoding { get; }

Property Value

PdfStringEncoding

HexLiteral

Gets a value indicating whether the string is a hexadecimal literal.

public bool HexLiteral { get; }

Property Value

bool

Length

Gets the number of characters in this string.

public int Length { get; }

Property Value

int

Value

Gets the string value.

public string Value { get; }

Property Value

string

Methods

ToString()

Returns the string.

public override string ToString()

Returns

string

ToStringFromPdfDocEncoded()

Hack for document encoded bookmarks.

public string ToStringFromPdfDocEncoded()

Returns

string