Esempio n. 1
0
 public static void Run()
 {
     // ExStart:PDFToPPT
     // The path to the documents directory.
     string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();
     // Load PDF document
     Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir + "input.pdf");
     // Instantiate PptxSaveOptions instance
     Aspose.Pdf.PptxSaveOptions pptx_save = new Aspose.Pdf.PptxSaveOptions();
     // Save the output in PPTX format
     doc.Save(dataDir + "PDFToPPT_out.pptx", pptx_save);
     // ExEnd:PDFToPPT
 }        
        public static void Run()
        {
            // ExStart:PDFToPPT
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();

            // Load PDF document
            Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir + "input.pdf");
            // Instantiate PptxSaveOptions instance
            Aspose.Pdf.PptxSaveOptions pptx_save = new Aspose.Pdf.PptxSaveOptions();
            // Save the output in PPTX format
            doc.Save(dataDir + "PDFToPPT_out.pptx", pptx_save);
            // ExEnd:PDFToPPT
        }
Esempio n. 3
0
        public static void PDFtoPTTXWithProgressTracking()
        {
            //ExStart: PDFtoPTTXWithProgressTracking
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();

            // Load PDF document
            Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir + "input.pdf");
            // Instantiate PptxSaveOptions instance
            Aspose.Pdf.PptxSaveOptions pptx_save = new Aspose.Pdf.PptxSaveOptions();

            //Specify Custom Progress Handler
            pptx_save.CustomProgressHandler = ShowProgressOnConsole;
            // Save the output in PPTX format
            doc.Save(dataDir + "PDFToPPTWithProgressTracking_out_.pptx", pptx_save);
            //ExEnd: PDFtoPTTXWithProgressTracking
        }