PPTX DOCX XLSX PDF ODP
Aspose.Slides  for .NET
PPT

Aggiungi filigrana di testo a PPT tramite C#

Crea le tue app .NET per filigranare i file PPT utilizzando le API lato server.

Come filigranare il file PPT usando C#

Per filigranare il file PPT, useremo

Aspose.Slides per .NET

API che è un’API di manipolazione dei documenti ricca di funzionalità, potente e facile da usare per la piattaforma C#. Aprire

NuGet

gestore pacchetti, cerca Aspose.Slides e installa. È inoltre possibile utilizzare il seguente comando dalla Console di gestione pacchetti.

Comando


PM> Install-Package Aspose.Slides.NET

Passaggi per aggiungere filigrana a PPT tramite C#

È necessario aspose.slides.dll per provare il seguente flusso di lavoro nel proprio ambiente.

  1. Crea un’istanza della classe Presentation

  2. Seleziona la presentazione principale

  3. Aggiungi il tipo di forma usando AddAutoShape

  4. Aggiungi il testo della filigrana usando AddTextFrame

Requisiti di sistema

Aspose.Slides per .NET è supportato su tutti i principali sistemi operativi. Assicurati solo di avere i seguenti prerequisiti.

  • Microsoft Windows o un sistema operativo compatibile con piattaforme .NET Framework, .NET Core, Windows Azure, Mono o Xamarin.
  • Ambiente di sviluppo come Microsoft Visual Studio.
  • Aspose.Slides per .NET referenziato nel tuo progetto.
 

Aggiungi filigrana a PPT - C#


// create a Presentation from scratch
using (var presentation = new Aspose.Slides.Presentation())
{
    // get the Master Slide to add watermark on all slides
    var master = presentation.Masters[0];
    // add a new shape using IShapeColection.AddAutoShape
    var shape = master.Shapes.AddAutoShape(Aspose.Slides.ShapeType.Triangle, 0, 0, 0, 0);
    // set watermark text
    shape.AddTextFrame("CONFIDENTIAL");
    // save presentation in PPT format
    presentation.Save("output.ppt", Aspose.Slides.Export.SaveFormat.Ppt);
}  
 
  • Informazioni su Aspose.Slides per .NET API

    L’API Aspose.Slides può essere utilizzata per leggere, scrivere, manipolare e convertire documenti Microsoft PowerPoint in PDF, XPS, HTML, TIFF, ODP e vari altri formati. Si possono creare nuovi file da zero e salvarli nei relativi formati supportati. Aspose.Slides è un’API standalone per la creazione, l’analisi o la manipolazione di presentazioni, diapositive ed elementi e non dipende da alcun software come Microsoft o OpenOffice.

    Watermark PPT via Online App

    Add watermark to PPT documents by visiting our Live Demos website . The live demo has the following benefits

      No need to download or setup anything
      No need to write any code
      Just upload your PPT file, set your watermark and hit "Add" button
      Instantly get the download link for the resultant file

    PPT Cos'è il formato file PPT

    A file with PPT extension represents PowerPoint file that consists of a collection of slides for displaying as SlideShow. It specifies the Binary File Format used by Microsoft PowerPoint 97-2003. A PPT file can contain several different types of information such as text, bulleted points, images, multimedia and other embedded OLE objects. Microsoft came up with newer file format for PowerPoint, known as PPTX, from 2007 onwards that is based on Office OpenXML and is different from this binary file format. Several other application programs such as OpenOffice Impress and Apple Keynote can also create PPT files.

    Leggi di più

    Altri formati di filigrana supportati

    Usando C#, si possono facilmente filigranare diversi formati tra cui.

    PPTX (Apri il formato di presentazione XML)