Skip to main content
All docs
V25.1
  • DocumentExportOptions Class

    Contains options used to specify PDF document properties.

    Namespace: DevExpress.Docs.Pdf

    Assembly: DevExpress.Docs.Core.v25.1.dll

    NuGet Package: DevExpress.Docs.Core

    Declaration

    public class DocumentExportOptions

    The following members return DocumentExportOptions objects:

    Example

    The following code snippet specifies available document properties:

    using DevExpress.Docs.Presentation;
    using DevExpress.Docs.Presentation.Export;
    //...
    
    using (var presentation = new Presentation(File.ReadAllBytes("C:\\Documents\\Presentation.pptx")))
    {
        var options = new PdfExportOptions();
        options.DocumentOptions.Author = "Simon Peacock";
        options.DocumentOptions.Application = "DevExpress Presentation API";
        options.DocumentOptions.Keywords = "Presentation, DevExpress, Exported, PDF";
        options.DocumentOptions.Producer = "Developer Express Inc., 25.1.3.0";
        options.DocumentOptions.Subject = "Test Presentation";
        options.DocumentOptions.Title = "Presentation Title";
        presentation.ExportToPdf(new FileStream("C:\\Documents\\Presentation.pdf", FileMode.Create, FileAccess.ReadWrite), options);
    }
    

    Inheritance

    Object
    DocumentExportOptions
    See Also