Output

WebDocument.Output property

Returns collection of output elements of the document. Read-only Output.

public Output Output { get; }

Examples

[C#]
using (Presentation pres = new Presentation("pres.pptx"))
{
    var options = new WebDocumentOptions
    {
        TemplateEngine = new RazorTemplateEngine(),
        OutputSaver = new FileOutputSaver(),
        EmbedImages = false
    };
    
    WebDocument document = new WebDocument(options);

    // add "index.html" to output files, using "index" template to generate it and pres variable as model
    document.Output.Add("index.html", "index", pres);

    // ... set up other options of the document and then save the document
    document.Save();
}

See Also