Beispiel #1
0
        public static int Main(string[] args)
        {
            var pdfMergerOptions = new PdfMergerOptions();
            if (!Parser.Default.ParseArguments(args, pdfMergerOptions))
            {
                Console.WriteLine(pdfMergerOptions.GetUsage());
                return -1;
            }

            var program = new PdfMerger();
            program.GetFilesAndMerge(pdfMergerOptions.Directory, pdfMergerOptions.Directory);

            return 0;
        }
Beispiel #2
0
        public static int Main(string[] args)
        {
            var pdfMergerOptions = new PdfMergerOptions();

            if (!Parser.Default.ParseArguments(args, pdfMergerOptions))
            {
                Console.WriteLine(pdfMergerOptions.GetUsage());
                return(-1);
            }

            var program = new PdfMerger();

            program.GetFilesAndMerge(pdfMergerOptions.Directory, pdfMergerOptions.Directory);

            return(0);
        }