Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }