[]
Contains extension methods for the IPdfObject interface.
public static class IPdfObjectExt
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)
obj
objectChecks 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)
v1
IPdfObjectThe first object to compare.
v2
IPdfObjectThe second object to compare.
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)
v1
IPdfObjectThe first object to compare.
v2
IPdfObjectThe second object to compare.
resolveReferences
boolIndicates whether to resolve PDF references and compare actual values.
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