[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfObjectExt

Class IPdfObjectExt

Namespace
GrapeCity.Documents.Pdf.Spec
Assembly
GcDocs.Pdf.dll

Contains extension methods for the GrapeCity.Documents.Pdf.Spec.IPdfObject interface.

public static class IPdfObjectExt
Inheritance
object
IPdfObjectExt
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Methods

FromObject(object)

Creates a GrapeCity.Documents.Pdf.Spec.IPdfObject from an object. Depending on the type of the object, the following types of PDF objects are crated:

public static IPdfObject FromObject(object obj)

Parameters

obj object

Returns

GrapeCity.Documents.Pdf.Spec.IPdfObject

IsContentEqual(IPdfObject, IPdfObject, bool)

Checks whether the content of two GrapeCity.Documents.Pdf.Spec.IPdfObjects is the same. If both objects are null, they are considered to have the same content.

public static bool IsContentEqual(IPdfObject v1, IPdfObject v2, bool resolveReferences)

Parameters

v1 GrapeCity.Documents.Pdf.Spec.IPdfObject

The first object to compare.

v2 GrapeCity.Documents.Pdf.Spec.IPdfObject

The second object to compare.

resolveReferences bool

Indicates whether to resolve PDF references and compare actual values.

Returns

bool

true if the objects have the same content, false otherwise.

IsContentEqual(IPdfObject, IPdfObject)

Checks whether the content of two GrapeCity.Documents.Pdf.Spec.IPdfObjects is the same. If both objects are null, they are considered to have the same content.

public static bool IsContentEqual(IPdfObject v1, IPdfObject v2)

Parameters

v1 GrapeCity.Documents.Pdf.Spec.IPdfObject

The first object to compare.

v2 GrapeCity.Documents.Pdf.Spec.IPdfObject

The second object to compare.

Returns

bool

true if the objects have the same content, false otherwise.

PdfNameFromString(string)

Creates a PdfName from a string, returns PdfNull if string is null, otherwise returns PdfString.

public static IPdfObject PdfNameFromString(string s)

Parameters

s string

Returns

GrapeCity.Documents.Pdf.Spec.IPdfObject

PdfStringFromString(string)

Creates a PdfString from a string, returns PdfNull if the string is null, otherwise returns a PdfString representing the string.

public static IPdfObject PdfStringFromString(string s)

Parameters

s string

Returns

GrapeCity.Documents.Pdf.Spec.IPdfObject