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

C#を介してPPTにテキスト透かしを追加する

サーバー側APIを使用してPPTファイルに透かしを入れる独自の.NETアプリを構築します。

C#を使用してPPTファイルに透かしを入れる方法

PPTファイルに透かしを入れるために、 [Aspose.Slides for .NET](https://products.aspose.com/slides/ja/net) C#プラットフォーム用の機能豊富で強力で使いやすいドキュメント操作APIであるAPI。開ける [NuGet](https://www.nuget.org/packages/aspose.slides.net) パッケージマネージャー、検索 ** Aspose.Slides ** とインストールします。パッケージマネージャーコンソールから次のコマンドを使用することもできます。

指示


PM> Install-Package Aspose.Slides.NET

C#を介して透かしをPPTに追加する手順

自分の環境で次のワークフローを試すには、[aspose.slides.dll](https://downloads.aspose.com/slides/net)が必要です。

  1. Presentationクラスのインスタンスを作成します

  2. マスタープレゼンテーションを選択します

  3. AddAutoShapeを使用して形状タイプを追加します

  4. AddTextFrameを使用して透かしテキストを追加します

システム要求

Aspose.Slides for .NETは、すべての主要なオペレーティングシステムでサポートされています。次の前提条件があることを確認してください。

-Microsoft Windows、または.NET Framework、.NET Core、Windows Azure、Mono、またはXamarinプラットフォームと互換性のあるOS。 -MicrosoftVisualStudioのような開発環境。 -プロジェクトで参照されているAspose.Slidesfor.NET。

 

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);
}  
 
  • Aspose.Slides for.NETAPIについて

    Aspose.Slides APIを使用して、Microsoft PowerPointドキュメントの読み取り、書き込み、操作、およびPDF、XPS、HTML、TIFF、ODP、その他のさまざまな形式への変換を行うことができます。新しいファイルを最初から作成し、サポートされている関連する形式で保存できます。 Aspose.Slidesは、プレゼンテーション、スライド、要素を作成、解析、または操作するためのスタンドアロンAPIであり、Microsoftや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 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.

    続きを読む

    その他のサポートされている透かし形式

    C#を使用すると、を含むさまざまな形式に簡単に透かしを入れることができます。

    PPTX (XMLプレゼンテーション形式を開く)