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

เพิ่มลายน้ำข้อความไปยัง PPTX ผ่าน C#

สร้างแอป .NET ของคุณเองเพื่อใส่ลายน้ำไฟล์ PPTX โดยใช้ API ฝั่งเซิร์ฟเวอร์

วิธีใส่ลายน้ำไฟล์ PPTX โดยใช้ C#

เพื่อใส่ลายน้ำไฟล์ PPTX เราจะใช้

Aspose.Slides สำหรับ .NET

API ซึ่งเป็น API การจัดการเอกสารที่มีคุณลักษณะหลากหลาย มีประสิทธิภาพ และใช้งานง่ายสำหรับแพลตฟอร์ม C# เปิด

NuGet

package manager ค้นหา สมมติ.สไลด์ และติดตั้ง คุณยังสามารถใช้คำสั่งต่อไปนี้จาก Package Manager Console

สั่งการ


PM> Install-Package Aspose.Slides.NET

ขั้นตอนในการเพิ่มลายน้ำให้กับ PPTX ผ่าน C#

คุณต้องใช้ aspose.slides.dll เพื่อลองใช้เวิร์กโฟลว์ต่อไปนี้ในสภาพแวดล้อมของคุณเอง

  1. สร้างอินสแตนซ์ของคลาสการนำเสนอ

  2. เลือกการนำเสนอต้นแบบ

  3. เพิ่มประเภทรูปร่างโดยใช้ AddAutoShape

  4. เพิ่มข้อความลายน้ำโดยใช้ AddTextFrame

ความต้องการของระบบ

Aspose.Slides สำหรับ .NET รองรับระบบปฏิบัติการหลักทั้งหมด เพียงตรวจสอบให้แน่ใจว่าคุณมีข้อกำหนดเบื้องต้นดังต่อไปนี้

  • Microsoft Windows หรือระบบปฏิบัติการที่เข้ากันได้กับ .NET Framework, .NET Core, Windows Azure, Mono หรือ Xamarin Platforms
  • สภาพแวดล้อมการพัฒนาเช่น Microsoft Visual Studio
  • Aspose.Slides สำหรับ .NET ที่อ้างอิงในโครงการของคุณ
 

เพิ่มลายน้ำให้กับ 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 สำหรับ .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.

    อ่านเพิ่มเติม

    รูปแบบลายน้ำอื่น ๆ ที่รองรับ

    การใช้ C# สามารถใส่ลายน้ำรูปแบบต่างๆ ได้อย่างง่ายดายรวมถึง

    PPT (Microsoft PowerPoint 97-2003)