Aspose.Pdf.Examples.CSharp.AsposePDF.WorkingDocuments.DetermineProgress.Run C# (CSharp) 메소드

Run() 공개 정적인 메소드

public static Run ( ) : void
리턴 void
        public static void Run()
        {
            // ExStart:DetermineProgress
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_WorkingDocuments();

            // Open document
            Document pdfDocument = new Document(dataDir + "AddTOC.pdf");
            DocSaveOptions saveOptions = new DocSaveOptions();
            saveOptions.CustomProgressHandler = new UnifiedSaveOptions.ConversionProgressEventHandler(ShowProgressOnConsole);

            dataDir = dataDir + "DetermineProgress_out.pdf";
            pdfDocument.Save(dataDir, saveOptions);
            Console.ReadLine();
            // ExEnd:DetermineProgress
        }
        // ExStart:ShowProgressOnConsole