public static void CorruptedFiles()
        {
            // ExStart:CorruptedFiles
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Pages();

            Aspose.Pdf.Facades.PdfFileEditor pfe = new Aspose.Pdf.Facades.PdfFileEditor();
            pfe.CorruptedFileAction = Aspose.Pdf.Facades.PdfFileEditor.ConcatenateCorruptedFileAction.ConcatenateIgnoringCorrupted;
            pfe.Concatenate(new string[] { dataDir + "input.pdf", dataDir + "input2.pdf", dataDir + "input3.pdf" }, dataDir + "CorruptedFiles_out.pdf");
            if (pfe.CorruptedItems.Length > 0)
            {
                Console.WriteLine("Corrupted documents:");
                foreach (Aspose.Pdf.Facades.PdfFileEditor.CorruptedItem item in pfe.CorruptedItems)
                { Console.WriteLine(item.Index + " reason " + item.Exception.Message); }
            }

            else Console.WriteLine("No corrupted documents"); 
            // ExEnd:CorruptedFiles
        }
        public static void CorruptedFiles()
        {
            // ExStart:CorruptedFiles
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Pages();

            Aspose.Pdf.Facades.PdfFileEditor pfe = new Aspose.Pdf.Facades.PdfFileEditor();
            pfe.CorruptedFileAction = Aspose.Pdf.Facades.PdfFileEditor.ConcatenateCorruptedFileAction.ConcatenateIgnoringCorrupted;
            pfe.Concatenate(new string[] { dataDir + "input.pdf", dataDir + "input2.pdf", dataDir + "input3.pdf" }, dataDir + "CorruptedFiles_out_.pdf");
            if (pfe.CorruptedItems.Length > 0)
            {
                Console.WriteLine("Corrupted documents:");
                foreach (Aspose.Pdf.Facades.PdfFileEditor.CorruptedItem item in pfe.CorruptedItems)
                {
                    Console.WriteLine(item.Index + " reason " + item.Exception.Message);
                }
            }

            else
            {
                Console.WriteLine("No corrupted documents");
            }
            // ExEnd:CorruptedFiles
        }