[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfObjectExt

Class IPdfObjectExt

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

Contains extension methods for the IPdfObject interface.

public static class IPdfObjectExt
Inheritance
IPdfObjectExt
Inherited Members

Methods

FromObject(object)

Creates a 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

IPdfObject

IsContentEqual(IPdfObject, IPdfObject)

Checks whether the content of two 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 IPdfObject

The first object to compare.

v2 IPdfObject

The second object to compare.

Returns

bool

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

IsContentEqual(IPdfObject, IPdfObject, bool)

Checks whether the content of two 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 IPdfObject

The first object to compare.

v2 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.

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

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

IPdfObject