Method IsEqualTo
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
IsEqualTo(XmpMetadata)
Checks if this metadata is equal to another one.
public bool IsEqualTo(XmpMetadata metadata)
Parameters
metadata
XmpMetadataAn instance of XmpMetadata to compare this metadata to.
Returns
- bool
true
if metadata structures are equal; otherwisefalse
.
Remarks
This method ignores whitespace and formatting differences. It also ignores the XMP Toolkit attribute and the following elements:
- CreationDate, Creator, ModDate, and Producer in PDF schema
- CreateDate, CreatorTool, MetadataDate, and ModifyDate in Basic schema
IsEqualTo(string)
Checks if this metadata is equal to the metadata in the specified file.
public bool IsEqualTo(string fileName)
Parameters
fileName
stringThe file with metadata to compare this metadata to.
Returns
- bool
true
if metadata structures are equal; otherwisefalse
.
Remarks
The file is expected to have XMP data encoded in UTF-8 format.
This method ignores whitespace and formatting differences. It also ignores the XMP Toolkit attribute and the following elements:
- CreationDate, Creator, ModDate, and Producer in PDF schema
- CreateDate, CreatorTool, MetadataDate, and ModifyDate in Basic schema
IsEqualTo(Stream)
Checks if this metadata is equal to the metadata in the specified stream.
public bool IsEqualTo(Stream stream)
Parameters
stream
StreamThe stream with metadata to compare this metadata to.
Returns
- bool
true
if metadata structures are equal; otherwisefalse
.
Remarks
The stream is expected to have XMP data encoded in UTF-8 format.
This method ignores whitespace and formatting differences. It also ignores the XMP Toolkit attribute and the following elements:
- CreationDate, Creator, ModDate, and Producer in PDF schema
- CreateDate, CreatorTool, MetadataDate, and ModifyDate in Basic schema