Class ObjectToken
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
longThe offset in bytes from the start of the file for this object.
number
IndirectReferenceThe identifier for this object.
data
ITokenThe data contained in this object.
Properties
Data
The inner data of the object.
public IToken Data { get; }
Property Value
Number
The object and generation number of the object.
public IndirectReference Number { get; }
Property Value
Position
The offset to the start of the object number from the start of the file in bytes.
public long Position { get; }
Property Value
Methods
Equals(IToken)
public bool Equals(IToken obj)
Parameters
obj
IToken
Returns
ToString()
public override string ToString()