Beispiel #1
0
        static void Main(string[] args)
        {
            //Load PDF document
            PdfLoadedDocument document = new PdfLoadedDocument("../../../../Data/PDF_Succinctly.pdf");

            //Split PDF document with pattern
            document.Split("Document-{0}.pdf", );
            //Close the document
            document.Close(true);
        }
Beispiel #2
0
        //Split a PDF file into multiple files by page
        public static void SplitDocuments(string inputFilePath)
        {
            try
            {
                Console.WriteLine("Splitting files...");
                var          fileToSplit           = new PdfLoadedDocument(inputFilePath);
                const string targetFileNamePattern = "SplitFile" + "{0}.pdf";

                fileToSplit.Split(targetFileNamePattern, 1);
                fileToSplit.Close(true);
                Console.WriteLine("Files split successfully");
            }
            catch
            {
                throw;
            }
        }