Table of Contents

Class PdfString

Namespace
PdfEngine.Vector.Objects
Assembly
PdfEngine.Vector.dll

String object (ISO 32000-2 7.3.4), either literal (...) or hexadecimal <...>.

public sealed record PdfString : PdfObject, IEquatable<PdfObject>, IEquatable<PdfString>
Inheritance
PdfString
Implements
Inherited Members

Constructors

PdfString(ReadOnlyMemory<byte>, bool)

String object (ISO 32000-2 7.3.4), either literal (...) or hexadecimal <...>.

public PdfString(ReadOnlyMemory<byte> RawBytes, bool IsHex = false)

Parameters

RawBytes ReadOnlyMemory<byte>
IsHex bool

Properties

IsHex

public bool IsHex { get; init; }

Property Value

bool

RawBytes

public ReadOnlyMemory<byte> RawBytes { get; init; }

Property Value

ReadOnlyMemory<byte>

Methods

AsAscii()

public string AsAscii()

Returns

string

AsDecodedString()

public string AsDecodedString()

Returns

string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TryGetString(out string)

public override bool TryGetString(out string value)

Parameters

value string

Returns

bool