# OTP Dosyalarını C++ ile Birleştirme

> Windows 32 bit, Windows 64 bit ve Linux 64 bit için C++ Runtime Environment'da OTP belgelerini birleştirmek için C++ örnek kodu.

Source: https://products.aspose.com/slides/tr/cpp/merger/otp/
Updated: 2026-08-11



## C++ Kullanarak OTP Dosyasını Birleştirme

 OTP dosyasını birleştirmek için kullanacağız
 [Aspose.Slides for C++](https://products.aspose.com/slides/tr/cpp/)
 C++ platformu için zengin özelliklere sahip, güçlü ve kullanımı kolay bir belge birleştirme API'si olan API. En son sürümünü doğrudan indirebilirsiniz, sadece açın
 [NuGet](https://www.nuget.org/packages/aspose.slides)
 paket yöneticisi, ara
 **Aspose.Slides.Cpp**
 ve yükleyin. Paket Yöneticisi Konsolundan aşağıdaki komutu da kullanabilirsiniz.

### Emretmek

```cs

PM> Install-Package Aspose.Slides.Cpp

```

## OTP Dosyalarını C++'da Birleştirme Adımları

[Aspose.Slides for C++](https://products.aspose.com/slides/tr/cpp/) API'lerini birleştiren ve birleştiren temel bir belge, yalnızca birkaç satır kodla yapılabilir.

Her iki OTP dosyasını da yükleyin.

Her slaytta yineleme yapmak için get\_Slides() yöntemini kullanın.

İstediğiniz dosyayla birleştirmek için AddClone işlevini kullanın.

Belirtilen yola kaydetmek için Save() yöntemini kullanın

## sistem gereksinimleri

 Aspose.Slides for C++ tüm büyük platformlarda ve İşletim Sistemlerinde destekler. Lütfen aşağıdaki ön koşullara sahip olduğunuzdan emin olun.

- Microsoft Windows veya Windows 32 bit, Windows 64 bit ve Linux 64 bit için C++ Runtime Environment ile uyumlu bir işletim sistemi.
- Projenizde referans verilen C++ DLL için Aspose.Slides.

### OTP Dosyalarını Birleştirme - C++

```cs
// The path to the documents directory.
const String sourceFilePath1 = u"SourceFile2.otp";
const String sourceFilePath2 = u"SourceFile3.otp";
const String outputFilePath = u"mergedOutput.otp";

// Instantiate Presentation class
SharedPtr<Presentation> presentation1 = MakeObject<Presentation>(sourceFilePath1);
SharedPtr<Presentation> presentation2 = MakeObject<Presentation>(sourceFilePath2);

for (SharedPtr<ISlide> slide : presentation2->get_Slides()){
	// Merge from source to destination
	presentation1->get_Slides()->AddClone(slide);
}

// Save the presentation
presentation1->Save(outputFilePath, SaveFormat::Otp);

```

## Aspose.Slides for C++ API Hakkında

 Aspose.Slides API, Microsoft PowerPoint belgelerini okumak, yazmak, değiştirmek ve PDF, XPS, HTML, TIFF, ODP ve diğer çeşitli formatlara dönüştürmek için kullanılabilir. Sıfırdan yeni dosyalar oluşturabilir ve bunları ilgili desteklenen biçimlerde kaydedebilirsiniz. Aspose.Slides, sunumlar, slaytlar ve öğeler oluşturmak, ayrıştırmak veya değiştirmek için bağımsız bir API'dir ve Microsoft veya OpenOffice gibi herhangi bir yazılıma bağlı değildir.

Files with .OTP extension represent presentation template files created by applications in OASIS OpenDocument standard format. The contents of such a file include presentation information in the form of slides with text, images, shapes, multimedia content, transition effects and other slide elements. These template files are used for creating new presentations quickly based on the styling information stored in the template itself. OTP files can be created and saved with several different applications such as Impress that comes with OpenOffice suite and Microsoft PowerPoint. The OTP file format is similar to Microsoft PowerPoint template files .POT and .POTX.

## Desteklenen Diğer Birleştirme Formatları

- [ODP](https://products.aspose.com/slides/tr/cpp/merger/odp/) — OpenDocument Sunum Formatı
- [POT](https://products.aspose.com/slides/tr/cpp/merger/pot/) — Microsoft PowerPoint Şablon Dosyaları
- [POTM](https://products.aspose.com/slides/tr/cpp/merger/potm/) — Microsoft PowerPoint Şablon Dosyası
- [POTX](https://products.aspose.com/slides/tr/cpp/merger/potx/) — Microsoft PowerPoint Şablonu Sunumu
- [PPS](https://products.aspose.com/slides/tr/cpp/merger/pps/) — PowerPoint Slayt Gösterisi
- [PPSM](https://products.aspose.com/slides/tr/cpp/merger/ppsm/) — Makro Etkin Slayt Gösterisi
- [PPSX](https://products.aspose.com/slides/tr/cpp/merger/ppsx/) — PowerPoint Slayt Gösterisi
- [PPT](https://products.aspose.com/slides/tr/cpp/merger/ppt/) — Microsoft PowerPoint 97-2003
- [PPTM](https://products.aspose.com/slides/tr/cpp/merger/pptm/) — Makro Etkin Sunum Dosyası
- [PPTX](https://products.aspose.com/slides/tr/cpp/merger/pptx/) — Açık XML sunum Formatı
