public static ArrayList CompareDocuments(string document1, string document2)
        {
            Common.SetLicense();

            ArrayList result = new ArrayList();
            try
            {
                // Create a temporary folder
                string comparisonDocument = GetCompareDocumentName(document1, document2);

                // Call the util class for comparison
                DocumentComparisonUtil docCompUtil = new DocumentComparisonUtil();
                int added = 0, deleted = 0;
                docCompUtil.Compare(document1, document2, comparisonDocument, ref added, ref deleted);

                result.Add(Common.Success); // 0. Result
                result.Add((comparisonDocument)); // 1. Path of the comparison document
                result.Add(added); // 2. Number of additions
                result.Add(deleted); // 3. Number of deletions
            }
            catch (Exception ex)
            {
                result.Clear();
                result.Add(Common.Error + ": " + ex.Message); // 0. Result
            }
            return result;
        }
        public static ArrayList CompareDocuments(string document1, string document2)
        {
            Common.SetLicense();

            ArrayList result = new ArrayList();

            try
            {
                // Create a temporary folder
                string comparisonDocument = GetCompareDocumentName(document1, document2);

                // Call the util class for comparison
                DocumentComparisonUtil docCompUtil = new DocumentComparisonUtil();
                int added = 0, deleted = 0;
                docCompUtil.Compare(document1, document2, comparisonDocument, ref added, ref deleted);

                result.Add(Common.Success);       // 0. Result
                result.Add((comparisonDocument)); // 1. Path of the comparison document
                result.Add(added);                // 2. Number of additions
                result.Add(deleted);              // 3. Number of deletions
            }
            catch (Exception ex)
            {
                result.Clear();
                result.Add(Common.Error + ": " + ex.Message); // 0. Result
            }
            return(result);
        }