[]
Contains extension methods for the GrapeCity.Documents.Pdf.Spec.IPdfObject interface.
public static class IPdfObjectExt
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)
obj
objectChecks 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)
v1
GrapeCity.Documents.Pdf.Spec.IPdfObjectThe first object to compare.
v2
GrapeCity.Documents.Pdf.Spec.IPdfObjectThe second object to compare.
resolveReferences
boolIndicates whether to resolve PDF references and compare actual values.
true if the objects have the same content, false otherwise.
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)
v1
GrapeCity.Documents.Pdf.Spec.IPdfObjectThe first object to compare.
v2
GrapeCity.Documents.Pdf.Spec.IPdfObjectThe second object to compare.
true if the objects have the same content, false otherwise.
public static IPdfObject PdfNameFromString(string s)
s
stringCreates 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)
s
string