public static bool DocumentsAreEqual( string firstFile, string secondFile, PdfDecryptionHandler handler )
Public Shared Function DocumentsAreEqual ( firstFile As String, secondFile As String, handler As PdfDecryptionHandler ) As Boolean
This method is useful for regression tests when you compare two versions of the same document.
The method uses decryption handler specified by the handler parameter for both files. It's assumed that both files encrypted using the same encryption handler or both files are not encrypted at all.
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.