Exemplo n.º 1
0
        static void Main()
        {
            ConverterService convert = new ConverterService();

            //convert.ConvertPDF2PNG("C:\\Users\\hadasg\\Desktop\\Idan\\KeyVisual_A4_Sanadermil_d.pdf", "C:\\Users\\hadasg\\Desktop\\Idan", 150, 150, 4, 4);
            convert.ConvertPDF2PNGSingle("C:\\Users\\hadasg\\Desktop\\Idan\\cellphoneorg.pdf", "C:\\Users\\hadasg\\Desktop\\Idan\\cellphoneorg.png", 150, 150, 4, 4);
            //convert.ConvertPDFFolder2EPS("C:\\Users\\hadasg\\Desktop\\Features\\RIP2Image Support_PDFToEPS\\Test PDF folder to EPS",
                                    //"C:\\Users\\hadasg\\Desktop\\Features\\RIP2Image Support_PDFToEPS\\Test PDF folder to EPS\\a", "*.pdf", false, true, 1, 1);
               // convert.ConvertPDF2JPG("C:\\Users\\hadasg\\Desktop\\Idan\\KeyVisual_A4_Sanadermil_d.pdf", "C:\\Users\\hadasg\\Desktop\\Idan", 72, 72, 2, 4, 100);

            // 			convert.ConvertPDFFolder2JPG("C:\\Users\\hadasg\\Desktop\\Features\\RIP2Image Support_PDFToEPS\\Test PDF folder to EPS",
            // 									"C:\\Users\\hadasg\\Desktop\\Features\\RIP2Image Support_PDFToEPS\\Test PDF folder to EPS\\a", "*.pdf", true, true, 72, 72, 2, 4, 100);

            /* 19/05/14
            convert.ConvertPDF2JPG("C:\\gs\\XLIMTest\\PDF Process\\nieuwsbrief 2012.xlim.pdf", "C:\\gs\\XLIMTest\\PDF Process", 72, 72, 2, 4, 100);

            //mulipuleFileNomTimes(10000, "1Record", "C:\\gs\\PS\\1Record.ps", "C:\\gs\\PS");

            Stopwatch sw = new Stopwatch();
            sw.Start();
            //string convertFolderPath = "C:\\gs\\PDF";
            //string targetFolderPath = "C:\\gs\\JPG";

            /*
            FileConvertor fileConverter = new FileConvertor();
            */

            /* 19/05/14
            Worker workerObject = new Worker();
            Thread workerThread = new Thread(workerObject.DoWork1);
            //workerThread.Start();

            Worker workerObject2 = new Worker();
            Thread workerThread2 = new Thread(workerObject.DoWork2);
            //workerThread2.Start();

            Worker workerObject3 = new Worker();
            Thread workerThread3 = new Thread(workerObject.DoWork3);
            //workerThread3.Start();

            Worker workerObject4 = new Worker();
            Thread workerThread4 = new Thread(workerObject.DoWork4);
            //workerThread4.Start();

            //convert.ConvertFileType("C:\\gs\\PDF\\Folder2\\2Text_graph_image_cmyk_rgb.pdf", "C:\\gs\\JPG\\Folder2", wild.Length, "jpg");

            /*
            convert.ConvertFileTypeNestedFolders(convertFolderPath, targetFolderPath, "*.pdf", "jpg");
            */

            /* 19/05/14
            sw.Stop();
            Console.WriteLine("Elapsed={0}", sw.ElapsedMilliseconds/1000);

            //workerThread.Join();
            //workerThread2.Join();
             19/05/14 */
            InstancesManager.DeleteDynamicLoadingDLL();
        }
Exemplo n.º 2
0
            public void DoWork4()
            {
                Stopwatch sw = new Stopwatch();
                sw.Start();

                ConverterService convert = new ConverterService();

                convert.ConvertPDFFolder2JPG("C:\\gs\\XLIMTest\\1000RPDF\\1000R-4", "C:\\gs\\XLIMTest\\1000RJPG\\1000R-4", "*.pdf", true, true, 72, 72, 2, 4, 100);
                //convert.ConvertPDFFolder2JPG("C:\\gs\\XLIMTest\\PDF", "C:\\gs\\XLIMTest\\JPG", "*.pdf", false, true, 72, 72, 4, 4, 85);
                /*
                for (int i = 3; i < 101; i++)
                 				{
                    convert.ConvertPDF2JPG("C:\\gs\\PDFThread\\Folder1\\text_graphic_image - Copy - Copy " + i + ".pdf", "C:\\gs\\JPG\\Folder2", 1, 1, 85, 72, 72);
                 				}
                */
                sw.Stop();
                Console.WriteLine("Elapsed Thread 2={0}", sw.ElapsedMilliseconds / 1000);
            }