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

اضافه کردن متن واترمارک به PPTX از طریق C#

برنامه های دات نت خود را بسازید تا با استفاده از API های سمت سرور، فایل های PPTX را واترمارک کنید.

نحوه واترمارک کردن فایل PPTX با استفاده از سی شارپ

برای واترمارک کردن فایل PPTX، از

Aspose.Slides for .NET

API که یک API دستکاری اسناد غنی، قدرتمند و آسان برای پلتفرم C# است. باز کن

NuGet

مدیر بسته، جستجو کنید Aspose.Slides و نصب کنید. همچنین می توانید از دستور زیر در کنسول Package Manager استفاده کنید.

فرمان


PM> Install-Package Aspose.Slides.NET

مراحل اضافه کردن واترمارک به PPTX از طریق C#

شما به aspose.slides.dll نیاز دارید تا گردش کار زیر را در محیط خود امتحان کنید.

  1. یک نمونه از کلاس Presentation ایجاد کنید

  2. ارائه اصلی را انتخاب کنید

  3. با استفاده از AddAutoShape نوع شکل را اضافه کنید

  4. متن واترمارک را با استفاده از AddTextFrame اضافه کنید

سیستم مورد نیاز

Aspose.Slides for .NET در تمام سیستم عامل های اصلی پشتیبانی می شود. فقط مطمئن شوید که پیش نیازهای زیر را دارید.

  • مایکروسافت ویندوز یا یک سیستم عامل سازگار با .NET Framework، .NET Core، Windows Azure، Mono یا Xamarin.
  • محیط توسعه مانند Microsoft Visual Studio.
  • Aspose.Slides برای دات نت که در پروژه شما ارجاع داده شده است.
 

اضافه کردن واترمارک به PPTX - 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 PPTX format
    presentation.Save("output.pptx", Aspose.Slides.Export.SaveFormat.Pptx);
}  
 
  • درباره Aspose.Slides for .NET API

    Aspose.Slides API را می توان برای خواندن، نوشتن، دستکاری و تبدیل اسناد Microsoft PowerPoint به PDF، XPS، HTML، TIFF، ODP و فرمت های مختلف دیگر استفاده کرد. می توان فایل های جدید را از ابتدا ایجاد کرد و آن ها را در قالب های پشتیبانی شده مربوطه ذخیره کرد. Aspose.Slides یک API مستقل برای ایجاد، تجزیه یا دستکاری ارائه ها، اسلایدها و عناصر است و به هیچ نرم افزاری مانند Microsoft یا OpenOffice وابسته نیست.

    Watermark PPTX via Online App

    Add watermark to PPTX 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 PPTX file, set your watermark and hit "Add" button
      Instantly get the download link for the resultant file

    PPTX چیست PPTX فرمت فایل

    Files with PPTX extension are presentation files created with popular Microsoft PowerPoint application. Unlike the previous version of presentation file format PPT which was binary, the PPTX format is based on the Microsoft PowerPoint open XML presentation file format. A presentation file is a collection of slides where each slide can comprise of text, images, formatting, animations, and other media. These slides are presented to audience in the form of slideshows with custom presentation settings.

    ادامه مطلب

    سایر فرمت های Watermarking پشتیبانی شده

    با استفاده از سی شارپ، می توان به راحتی فرمت های مختلف از جمله واترمارک کرد.

    PPT (مایکروسافت پاورپوینت 97-2003)