Struct PdfObjectId
Namespace: AdCodicem.Pdf.Objects
Assembly: AdCodicem.Pdf.dll
Identifies an indirect object inside a PDF file by its object number and generation number.
public readonly record struct PdfObjectId : IEquatable<PdfObjectId>
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
PdfObjectId(int, int)
Identifies an indirect object inside a PDF file by its object number and generation number.
public PdfObjectId(int Number, int Generation = 0)
Parameters
Number int
The object number. Object numbers start at 1; zero identifies the head of the free list.
Generation int
The generation number, almost always zero but never safe to ignore in a key.
Properties
Generation
The generation number, almost always zero but never safe to ignore in a key.
public int Generation { get; init; }
Property Value
IsEmpty
Gets a value indicating whether this identifier designates no object.
public bool IsEmpty { get; }
Property Value
Number
The object number. Object numbers start at 1; zero identifies the head of the free list.
public int Number { get; init; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
The fully qualified type name.