# C++를 통해 PPT 파일 병합

> Windows 32비트, Windows 64비트 및 Linux 64비트용 C++ 런타임 환경에서 PPT 문서를 결합하는 C++ 예제 코드입니다.

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



## C++를 사용하여 PPT 파일을 병합하는 방법

 PPT 파일을 병합하려면 다음을 사용합니다.
 [C++용 Aspose.Slides](https://products.aspose.com/slides/ko/cpp/)
 기능이 풍부하고 강력하며 사용하기 쉬운 C++ 플랫폼용 문서 병합 API인 API입니다. 최신 버전을 직접 다운로드할 수 있습니다.
 [NuGet](https://www.nuget.org/packages/aspose.slides)
 패키지 관리자, 검색
 **Aspose.Slides.Cpp**
 설치합니다. 패키지 관리자 콘솔에서 다음 명령을 사용할 수도 있습니다.

### 명령

```cs

PM> Install-Package Aspose.Slides.Cpp

```

## C++에서 PPT 파일을 병합하는 단계

[Aspose.Slides for C++](https://products.aspose.com/slides/ko/cpp/) API로 기본 문서 병합 및 연결을 몇 줄의 코드로 수행할 수 있습니다.

두 PPT 파일을 모두 로드합니다.

get\_Slides() 메서드를 사용하여 각 슬라이드를 반복합니다.

AddClone 기능을 사용하여 원하는 파일과 병합합니다.

Save() 메서드를 사용하여 지정된 경로에 저장

## 시스템 요구 사항

 C++용 Aspose.Slides는 모든 주요 플랫폼 및 운영 체제를 지원합니다. 다음 전제 조건이 있는지 확인하십시오.

- Microsoft Windows 또는 Windows 32비트, Windows 64비트 및 Linux 64비트용 C++ 런타임 환경과 호환되는 OS.
- 프로젝트에서 참조되는 C++ DLL용 Aspose.Slides.

### PPT 파일 병합 - C++

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

// 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::Ppt);

```

## C++ API용 Aspose.Slides 정보

 Aspose.Slides API는 Microsoft PowerPoint 문서를 읽고, 쓰고, 조작하고, PDF, XPS, HTML, TIFF, ODP 및 기타 다양한 형식으로 변환하는 데 사용할 수 있습니다. 처음부터 새 파일을 만들고 지원되는 관련 형식으로 저장할 수 있습니다. Aspose.Slides는 프레젠테이션, 슬라이드 및 요소를 생성, 구문 분석 또는 조작하기 위한 독립 실행형 API이며 Microsoft 또는 OpenOffice와 같은 소프트웨어에 의존하지 않습니다.

A file with PPT extension represents PowerPoint file that consists of a collection of slides for displaying as SlideShow. It specifies the Binary File Format used by Microsoft PowerPoint 97-2003. A PPT file can contain several different types of information such as text, bulleted points, images, multimedia and other embedded OLE objects. Microsoft came up with newer file format for PowerPoint, known as PPTX, from 2007 onwards that is based on Office OpenXML and is different from this binary file format. Several other application programs such as OpenOffice Impress and Apple Keynote can also create PPT files.

## 기타 지원되는 병합 형식

- [ODP](https://products.aspose.com/slides/ko/cpp/merger/odp/) — OpenDocument 프레젠테이션 형식
- [OTP](https://products.aspose.com/slides/ko/cpp/merger/otp/) — OpenDocument 표준 형식
- [POT](https://products.aspose.com/slides/ko/cpp/merger/pot/) — 마이크로소프트 파워포인트 템플릿 파일
- [POTM](https://products.aspose.com/slides/ko/cpp/merger/potm/) — 마이크로소프트 파워포인트 템플릿 파일
- [POTX](https://products.aspose.com/slides/ko/cpp/merger/potx/) — 마이크로소프트 파워포인트 템플릿 프레젠테이션
- [PPS](https://products.aspose.com/slides/ko/cpp/merger/pps/) — 파워포인트 슬라이드 쇼
- [PPSM](https://products.aspose.com/slides/ko/cpp/merger/ppsm/) — 매크로 사용 슬라이드 쇼
- [PPSX](https://products.aspose.com/slides/ko/cpp/merger/ppsx/) — 파워포인트 슬라이드 쇼
- [PPTM](https://products.aspose.com/slides/ko/cpp/merger/pptm/) — 매크로 사용 프레젠테이션 파일
- [PPTX](https://products.aspose.com/slides/ko/cpp/merger/pptx/) — Open XML 프레젠테이션 형식
