alexa
menu

Document Processing

    Show / Hide Table of Contents

    PresentationSecurityAgentTools Class

    Provides AI agent tools for PowerPoint presentation security operations. Handles encryption, decryption, and write protection.

    Inheritance
    System.Object
    AgentToolBase
    AgentToolBase<IPresentation>
    PresentationSecurityAgentTools
    Inherited Members
    AgentToolBase<IPresentation>.InMemoryManager
    AgentToolBase<IPresentation>.Mode
    AgentToolBase<IPresentation>.OpenDocument(String, String)
    AgentToolBase<IPresentation>.SaveDocument(String, IPresentation)
    AgentToolBase<IPresentation>.SaveFile(String, Stream)
    AgentToolBase<IPresentation>.StorageManager
    AgentToolBase.GetTools()
    Namespace: Syncfusion.AI.AgentTools.PowerPoint
    Assembly: Syncfusion.DocumentSDK.AI.AgentTools.dll
    Syntax
    public class PresentationSecurityAgentTools : AgentToolBase<IPresentation>

    Constructors

    PresentationSecurityAgentTools(DocumentStorageManager)

    Initializes a new instance of the PresentationSecurityAgentTools class (Mode 2 — DocumentStorage).

    Declaration
    public PresentationSecurityAgentTools(DocumentStorageManager manager)
    Parameters
    Type Name Description
    DocumentStorageManager manager

    The document storage manager.

    PresentationSecurityAgentTools(PresentationManager)

    Initializes a new instance of the PresentationSecurityAgentTools class (Mode 1 — InMemory).

    Declaration
    public PresentationSecurityAgentTools(PresentationManager manager)
    Parameters
    Type Name Description
    PresentationManager manager

    The presentation manager for managing PowerPoint presentations.

    Methods

    DecryptPresentation(String, String, String)

    Removes encryption from a presentation.

    Declaration
    [Tool(Name = "DecryptPresentation", Description = "Removes encryption from a presentation. documentIdOrFilePath: The document ID (InMemory mode) or input file path (DocumentStorage mode).")]
    public AgentToolResult DecryptPresentation([ToolParameter(Description = "The document ID (InMemory mode) or input file path (DocumentStorage mode)")] string documentIdOrFilePath, [ToolParameter(Description = "The protection password")] string password, [ToolParameter(Description = "Output file path for saving the result (DocumentStorage mode only).")] string outputFilePath = null)
    Parameters
    Type Name Description
    System.String documentIdOrFilePath

    The document ID (InMemory mode) or the input presentation file path (DocumentStorage mode).

    System.String password

    The password used to decrypt the presentation.

    System.String outputFilePath

    Output file path for saving the result (DocumentStorage mode only).

    Returns
    Type Description
    AgentToolResult

    Result indicating success or failure.

    EncryptPresentation(String, String, String)

    Encrypts the presentation with a password.

    Declaration
    [Tool(Name = "EncryptPresentation", Description = "Encrypts the presentation using the provided password. documentIdOrFilePath: The document ID (InMemory mode) or input file path (DocumentStorage mode).")]
    public AgentToolResult EncryptPresentation([ToolParameter(Description = "The document ID (InMemory mode) or input file path (DocumentStorage mode)")] string documentIdOrFilePath, [ToolParameter(Description = "The password to encrypt with")] string password, [ToolParameter(Description = "Output file path for saving the result (DocumentStorage mode only).")] string outputFilePath = null)
    Parameters
    Type Name Description
    System.String documentIdOrFilePath

    The document ID (InMemory mode) or the input presentation file path (DocumentStorage mode).

    System.String password

    The password to encrypt with.

    System.String outputFilePath

    Output file path for saving the result (DocumentStorage mode only).

    Returns
    Type Description
    AgentToolResult

    Result indicating success or failure.

    ProtectPresentation(String, String, String)

    Write protects the PowerPoint presentation with a password.

    Declaration
    [Tool(Name = "ProtectPresentation", Description = "Write Protect the PowerPoint presentation. documentIdOrFilePath: The document ID (InMemory mode) or input file path (DocumentStorage mode).")]
    public AgentToolResult ProtectPresentation([ToolParameter(Description = "The document ID (InMemory mode) or input file path (DocumentStorage mode)")] string documentIdOrFilePath, [ToolParameter(Description = "The password to protect with")] string password, [ToolParameter(Description = "Output file path for saving the result (DocumentStorage mode only).")] string outputFilePath = null)
    Parameters
    Type Name Description
    System.String documentIdOrFilePath

    The document ID (InMemory mode) or the input presentation file path (DocumentStorage mode).

    System.String password

    The password to protect with.

    System.String outputFilePath

    Output file path for saving the result (DocumentStorage mode only).

    Returns
    Type Description
    AgentToolResult

    Result indicating success or failure.

    UnprotectPresentation(String, String)

    Removes write protection from a presentation.

    Declaration
    [Tool(Name = "UnprotectPresentation", Description = "Removes write protection from a presentation. documentIdOrFilePath: The document ID (InMemory mode) or input file path (DocumentStorage mode).")]
    public AgentToolResult UnprotectPresentation([ToolParameter(Description = "The document ID (InMemory mode) or input file path (DocumentStorage mode)")] string documentIdOrFilePath, [ToolParameter(Description = "Output file path for saving the result (DocumentStorage mode only).")] string outputFilePath = null)
    Parameters
    Type Name Description
    System.String documentIdOrFilePath

    The document ID (InMemory mode) or the input presentation file path (DocumentStorage mode).

    System.String outputFilePath

    Output file path for saving the result (DocumentStorage mode only).

    Returns
    Type Description
    AgentToolResult

    Result indicating success or failure.

    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved