Namespace: PdfSharp.Pdf.Advanced
Represents an indirect reference to a PdfObject.
public sealed class PdfReference : PdfSharp.Pdf.PdfItem, System.ICloneable
Inheritance Object → PdfItem → PdfReference
Implements ICloneable
Gets or sets the object identifier.
public PdfObjectID ObjectID { get; set; }
Gets the object number of the object identifier.
public int ObjectNumber { get; }
Gets the generation number of the object identifier.
public int GenerationNumber { get; }
Gets or sets the file position of the related PdfObject.
public int Position { get; set; }
Gets or sets the referenced PdfObject.
public PdfObject Value { get; set; }
Gets or sets the document this object belongs to.
public PdfDocument Document { get; set; }
Initializes a new PdfReference instance for the specified indirect object.
public PdfReference(PdfObject pdfObject)
pdfObject
PdfObject
Initializes a new PdfReference instance from the specified object identifier and file position.
public PdfReference(PdfObjectID objectID, int position)
objectID
PdfObjectID
position
Int32
Writes the object in PDF iref table format.
internal void WriteXRefEntry(PdfWriter writer)
writer
PdfWriter
Writes an indirect reference.
internal void WriteObject(PdfWriter writer)
writer
PdfWriter
Hack for dead objects.
internal void SetObject(PdfObject value)
value
PdfObject
Gets a string representing the object identifier.
public string ToString()
Dereferences the specified item. If the item is a PdfReference, the item is set to the referenced value. Otherwise no action is taken.
public static void Dereference(Object& item)
item
Object&
Dereferences the specified item. If the item is a PdfReference, the item is set to the referenced value. Otherwise no action is taken.
public static void Dereference(PdfItem& item)
item
PdfItem&