Table of Contents

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 XmpMetadata

An instance of XmpMetadata to compare this metadata to.

Returns

bool

true if metadata structures are equal; otherwise false.

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 string

The file with metadata to compare this metadata to.

Returns

bool

true if metadata structures are equal; otherwise false.

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 Stream

The stream with metadata to compare this metadata to.

Returns

bool

true if metadata structures are equal; otherwise false.

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