Example #1
0
        private async void ProcessTextDiff()
        {
            var docA = mPDFViewCtrlA.GetDoc();
            var docB = mPDFViewCtrlB.GetDoc();

            try
            {
                PDFDoc outputDocument = new PDFDoc();
                outputDocument.AppendTextDiff(docA, docB);

                Controls.PDFResultDialog contentDialog = new Controls.PDFResultDialog();
                var pdfCompare = new PDFCompareResult(outputDocument);
                pdfCompare.SetPresentationMode(PDFViewCtrlPagePresentationMode.e_facing_continuous);
                contentDialog.Content          = pdfCompare;
                pdfCompare.CloseButtonClicked += delegate
                {
                    contentDialog.Hide();
                };

                await contentDialog.ShowAsync();
            }
            catch (Exception ex)
            { }
        }