public static bool DocumentsAreEqual( Stream firstDocument, Stream secondDocument, string password, PdfConfigurationOptions options )
Public Shared Function DocumentsAreEqual ( firstDocument As Stream, secondDocument As Stream, password As String, options As PdfConfigurationOptions ) As Boolean
This method is useful for regression tests when you compare
two versions of the same document.
Password specified by the password parameter is used for both documents (it's assumed that both documents have the same password set or both documents have no password set). Please use empty string for password parameter if documents being compared are not protected with password.
Differences in CreationDate and ModifiedDate properties, document metadata and file trailer IDs of document being compared do not get taken into account.
The firstDocument and the secondDocument must be streams that allow reading and seeking. Otherwise, the method throws an exception of PdfException type.