Namespace: PdfSharp.Pdf.Advanced
Provides access to the internal document data structures. This class prevents the public interfaces from pollution with too many internal functions.
public class PdfInternals
Inheritance Object → PdfInternals
The name of the custom value key.
public string CustomValueKey;
Gets or sets the first document identifier.
public string FirstDocumentID { get; set; }
Gets the first document identifier as GUID.
public Guid FirstDocumentGuid { get; }
Gets or sets the second document identifier.
public string SecondDocumentID { get; set; }
Gets the first document identifier as GUID.
public Guid SecondDocumentGuid { get; }
Gets the catalog dictionary.
public PdfCatalog Catalog { get; }
Gets the ExtGStateTable object.
public PdfExtGStateTable ExtGStateTable { get; }
This property is not documented by intention.
public object UAManager { get; }
Use GetAllObjects.
Gets all indirect objects ordered by their object identifier.
public PdfObject[] AllObjects { get; }
Returns the object with the specified Identifier, or null if no such object exists.
public PdfObject GetObject(PdfObjectID objectID)
objectID
PdfObjectID
Maps the specified external object to the substitute object in this document. Returns null if no such object exists.
public PdfObject MapExternalObject(PdfObject externalObject)
externalObject
PdfObject
Returns the PdfReference of the specified object, or null if the object is not in the document’s object table.
public static PdfReference GetReference(PdfObject obj)
obj
PdfObject
Gets the object identifier of the specified object.
public static PdfObjectID GetObjectID(PdfObject obj)
obj
PdfObject
Gets the object number of the specified object.
public static int GetObjectNumber(PdfObject obj)
obj
PdfObject
Gets the generation number of the specified object.
public static int GenerationNumber(PdfObject obj)
obj
PdfObject
Gets all indirect objects ordered by their object identifier.
public PdfObject[] GetAllObjects()
Creates the indirect object of the specified type, adds it to the document, and returns the object.
public T CreateIndirectObject<T>()
T
T
Adds an object to the PDF document. This operation and only this operation makes the object an indirect object owned by this document.
public void AddObject(PdfObject obj)
obj
PdfObject
Removes an object from the PDF document.
public void RemoveObject(PdfObject obj)
obj
PdfObject
Returns an array containing the specified object as first element follows by its transitive closure. The closure of an object are all objects that can be reached by indirect references. The transitive closure is the result of applying the calculation of the closure to a closure as long as no new objects came along. This is e.g. useful for getting all objects belonging to the resources of a page.
public PdfObject[] GetClosure(PdfObject obj)
obj
PdfObject
Returns an array containing the specified object as first element follows by its transitive closure limited by the specified number of iterations.
public PdfObject[] GetClosure(PdfObject obj, int depth)
obj
PdfObject
depth
Int32
Writes a PdfItem into the specified stream.
public void WriteObject(Stream stream, PdfItem item)
stream
Stream
item
PdfItem