اضافه کردن متن واترمارک به PPTX از طریق C++
برنامه های C++ خود را بسازید تا با استفاده از API های سمت سرور، فایل های PPTX را واترمارک کنید.
نحوه واترمارک کردن فایل PPTX با استفاده از ++C
برای واترمارک کردن فایل PPTX، از
API که یک API واترمارک اسناد غنی، قدرتمند و آسان برای پلتفرم C++ است. می توانید آخرین نسخه آن را مستقیما دانلود کنید، فقط باز کنید
مدیر بسته، جستجو کنید Aspose.Slides.Cpp و نصب کنید. همچنین می توانید از دستور زیر در کنسول Package Manager استفاده کنید.
فرمان
PM> Install-Package Aspose.Slides.Cpp
مراحل افزودن واترمارک به PPTX از طریق C++
شما به aspose.slides.dll نیاز دارید تا گردش کار زیر را در محیط خود امتحان کنید.
فایل های PPTX را با نمونه ای از کلاس Presentation بارگیری کنید
اسلاید اول را دریافت کنید
یک AutoShape از نوع Rectangle اضافه کنید
TextFrame را به مستطیل اضافه کنید
شی Paragraph را برای قاب متن ایجاد کنید
شیء قسمت را برای پاراگراف ایجاد کنید
اضافه کردن واترمارک با استفاده از set_Text()
ذخیره سند
سیستم مورد نیاز
Aspose.Slides برای C++ در تمام سیستم عامل ها و سیستم عامل های اصلی پشتیبانی می کند. لطفا مطمئن شوید که پیش نیازهای زیر را دارید.
واترمارک را به PPTX - C++ اضافه کنید
// Load the desired PPTX File
SharedPtr<Presentation> pres = MakeObject<Presentation>(u"templatePath.pptx");
// Access first slide
SharedPtr<ISlide> slide = pres->get_Slides()->idx_get(0);
// Add an AutoShape of Rectangle type
SharedPtr<IAutoShape> ashp = slide->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 150, 75, 150, 50);
ashp->get_FillFormat()->set_FillType(FillType::NoFill);
// Add TextFrame to the Rectangle
ashp->AddTextFrame(u" ");
// Accessing the text frame
SharedPtr<ITextFrame> txtFrame = ashp->get_TextFrame();
// Create the Paragraph object for text frame
SharedPtr<IParagraph> paragraph = txtFrame->get_Paragraphs()->idx_get(0);
// Create Portion object for paragraph
SharedPtr<IPortion> portion = paragraph->get_Portions()->idx_get(0);
portion->set_Text(u"Watermark Text Watermark Text Watermark Text");
//Adding another shape
SharedPtr<IAutoShape> ashape2 = slide->get_Shapes()->AddAutoShape(ShapeType::Triangle, 200, 365, 400, 150);
//Reorder shape
slide->get_Shapes()->Reorder(2, ashape2);
// Save PPTX to Disk
pres->Save(u"outPath.pptx", Aspose::Slides::Export::SaveFormat::Pptx);
درباره Aspose.Slides for C++ 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
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 پشتیبانی شده
با استفاده از C++، می توان به راحتی فرمت های مختلف از جمله واترمارک کرد.