PPT PPTX ODP POT ppsx
Aspose.Slides  for C++
PPTM

C++ kullanarak PPTM özelliklerini düzenleyin

Sunucu tarafı API’lerini kullanarak sunum dosyalarındaki Yerleşik ve Özel özellikleri değiştirmek için kendi C++ uygulamalarınızı oluşturun.

C++ aracılığıyla PPTM Özelliklerini değiştirin

Geliştiriciler, Aspose.Slides for C++ ürününü kullanarak, özel özelliklerin yanı sıra yerleşik özelliklerin değerlerine erişebilir ve bunları değiştirebilir. Geliştiriciler, sunum dosyasının belge özelliklerine erişmek için Presentation nesnesi tarafından sunulan DocumentProperties özelliğini kullanabilir.

PPTM Yerleşik Özelliklerini Değiştirin - C++


// Instantiate the Presentation class that represents the Presentation
System::SharedPtr<Presentation> presentation = System::MakeObject<Presentation>(u"presentation.pptm");

// Create a reference to IDocumentProperties object associated with Presentation
System::SharedPtr<IDocumentProperties> documentProperties = presentation->get_DocumentProperties();

// Set the builtin properties
documentProperties->set_Author(u"New Author");
documentProperties->set_Title(u"New Title");

// Save your presentation to a file
presentation->Save(u"DocumentProperties_out.pptm", SaveFormat::Pptm);

PPTM - C++ ürününe Özel Özellikler ekleyin


// Instantiate the Presentation class
auto presentation = System::MakeObject<Presentation>();

// Getting Document Properties
auto documentProperties = presentation->get_DocumentProperties();

// Adding Custom properties
documentProperties->idx_set(u"New Custom", ObjectExt::Box<int32_t>(12));
documentProperties->idx_set(u"My Name", ObjectExt::Box<String>(u"Aspose Metadata Editor"));
documentProperties->idx_set(u"Custom", ObjectExt::Box<int32_t>(124));

// Getting property name at particular index
String getPropertyName = documentProperties->GetCustomPropertyName(2);

// Removing selected property
documentProperties->RemoveCustomProperty(getPropertyName);

// Saving presentation
presentation->Save(u"CustomDocumentProperties_out.pptm", SaveFormat::Pptm);

C++ Aracılığıyla PPTM Meta Verilerini Çıkarma

Bunlar, PPTM dosyalarından Meta Verileri Çıkarma adımlarıdır.

  1. PPTM dosyasının yolu ile Presentation sınıfını örneklendirin

  2. Presentation ile ilişkili DocumentProperties nesnesini alın

  3. DocumentProperties nesnesindeki öğeler üzerinde döngü yapın

  4. Özel özelliklere erişin ve değiştirin

Diğer Desteklenen Meta Veri Biçimleri

C++ kullanarak, aşağıdakiler de dahil olmak üzere diğer birçok biçimin meta verilerini de değiştirebilirsiniz.