public static bool DocumentsAreEqual( Stream firstDocument, Stream secondDocument )
Public Shared Function DocumentsAreEqual ( firstDocument As Stream, secondDocument As Stream ) As Boolean
This method is useful for regression tests when you compare two versions of the same document.
This method can only compare not encrypted files. To compare encrypted documents please use an overload that accepts parameter of PdfDecryptionHandler type.
The firstDocument and the secondDocument must be streams that allow reading and seeking. Otherwise, the method throws an exception of PdfException type.
This method ignores time-dependent document properties like CreationDate and ModifiedDate. Document metadata, trailer IDs and some other auto-generated properties are also get ignored.