Input

WebDocument.Input property

Returns collection of input elements (templates) of the document. Read-only Input.

public Input Input { 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-template.html" template with "index" template key to use it later (for Output).
    // The model type is <Aspose.Slides.Presentation>.
    document.Input.AddTemplate<Aspose.Slides.Presentation>("index", "index-template.html");
    
    /// ... set up other options of the document and then save the document
    document.Save();
}

See Also