Table of Contents

Class ObjectToken

Namespace
UglyToad.PdfPig.Tokens
Assembly
UglyToad.PdfPig.Tokens.dll

Any object in a PDF file may be labeled as an indirect object. This gives the object a unique object identifier by which other objects can refer to it. These objects contain inner data of any type.

public class ObjectToken : IDataToken<IToken>, IToken, IEquatable<IToken>
Inheritance
ObjectToken
Implements
Inherited Members

Constructors

ObjectToken(long, IndirectReference, IToken)

Create a new ObjectToken from the PDF document at the given offset with the identifier and inner data.

public ObjectToken(long position, IndirectReference number, IToken data)

Parameters

position long

The offset in bytes from the start of the file for this object.

number IndirectReference

The identifier for this object.

data IToken

The data contained in this object.

Properties

Data

The inner data of the object.

public IToken Data { get; }

Property Value

IToken

Number

The object and generation number of the object.

public IndirectReference Number { get; }

Property Value

IndirectReference

Position

The offset to the start of the object number from the start of the file in bytes.

public long Position { get; }

Property Value

long

Methods

Equals(IToken)

public bool Equals(IToken obj)

Parameters

obj IToken

Returns

bool

ToString()

public override string ToString()

Returns

string