ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / Presentation Class / Export Method
ExportFormat
PresentationExportOptions
Example

In This Topic
    Export Method (Presentation)
    In This Topic
    Exports the presentation to a variety of formats (e.g., PDF, video, image series). This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Exceptions
    ExceptionDescription
    This method must be called within the lambda passed to QueuedTask.Run.
    Remarks
    When there are more than one page to export and the export format is image (e.g., JPEGFormat or PNGFormat), the presentation will be exported to an image sequence. The file name of each image in an image sequence comprises four parts: (1) the base name of exportFormat.OutputFileName stripped of extension; (2) an underscore ("_"); (3) the page index; (4) the image extension (e.g., .png). Examples: test_1.png, test_3.png, test_5.png.
    Example
    Export a presentation
    //Note: Call within QueuedTask.Run()
    await QueuedTask.Run(() =>
    {
      //Create mp4 format with appropriate settings
      MP4VideoFormat mp4Format = new MP4VideoFormat();
      mp4Format.Width = 800;
      mp4Format.Height = 600;
      mp4Format.OutputFileName = @"my folder\presentation.mp4";
    
      //Define Export Options
      PresentationExportOptions options = new PresentationExportOptions
      {
        PageRangeOption = ExportPageOptions.ExportByPageRange,
        CustomPages = "1,2,8"
      };
    
      //export as mp4
      presentation.Export(mp4Format, options);
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also