# .NET을 통해 PPT 문서에서 텍스트 및 이미지 추출

> .NET Framework, .NET Core, Windows Azure, Mono 또는 Xamarin 플랫폼의 PPT 파일에서 텍스트와 이미지를 추출하는 C# 소스 코드.

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



## C#을 사용하여 PPT 파일을 구문 분석하는 방법

 PPT 파일을 구문 분석하기 위해
 [.NET용 Aspose.Slides](https://products.aspose.com/slides/ko/net)
 기능이 풍부하고 강력하며 사용하기 쉬운 C# 플랫폼용 문서 조작 API인 API입니다. 열려 있는
 [NuGet](https://www.nuget.org/packages/aspose.slides.net)
 패키지 관리자, 검색
 **아포즈.슬라이드**
 설치합니다. 패키지 관리자 콘솔에서 다음 명령을 사용할 수도 있습니다.

### 명령

```cs

PM> Install-Package Aspose.Slides.NET

```

## C#에서 PPT 파일을 구문 분석하는 단계

[Aspose.Slides for .NET](https://products.aspose.com/slides/ko/net) API를 사용한 기본 문서 파싱은 몇 줄의 코드로 수행할 수 있습니다.

PPT 파일을 불러옵니다.

모든 텍스트 프레임을 가져옵니다.

각 단락 부분을 반복합니다.

텍스트, 글꼴 등과 같은 필요한 출력을 가져옵니다.

## 시스템 요구 사항

 당사의 API는 모든 주요 플랫폼 및 운영 체제에서 지원됩니다. 아래 코드를 실행하기 전에 시스템에 다음 전제 조건이 있는지 확인하십시오.

- Microsoft Windows 또는 .NET Framework, .NET Core, Windows Azure, Mono 또는 Xamarin 플랫폼과 호환되는 OS
- Microsoft Visual Studio와 같은 개발 환경
- 프로젝트에서 참조하는 .NET DLL용 Aspose.Slides - 위의 다운로드 버튼을 사용하여 NuGet에서 설치

### PPT 파일 구문 분석 - C#

```cs
//Extract Text from the Whole ppt Presentation
    Presentation pptPresentation = new Presentation(dataDir + "demo.ppt");

    //Get an Array of ITextFrame objects from all slides in the PPTX
    ITextFrame[] textFramesPPTX = Aspose.Slides.Util.SlideUtil.GetAllTextFrames(pptPresentation, true);

    //Loop through the Array of TextFrames
     for (int i = 0; i < textFramesPPTX.Length; i++)

        //Loop through paragraphs in current ITextFrame
        foreach (IParagraph para in textFramesPPTX[i].Paragraphs)

             //Loop through portions in the current IParagraph
             foreach (IPortion port in para.Portions)
             {
                //Display text in the current portion
                Console.WriteLine(port.Text);

                //Display font height of the text
                Console.WriteLine(port.PortionFormat.FontHeight);

                //Display font name of the text
                if (port.PortionFormat.LatinFont != null)
                   Console.WriteLine(port.PortionFormat.LatinFont.FontName);
            }

```

## .NET 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/net/parser/odp/) — OpenDocument 프레젠테이션 형식
- [PPTX](https://products.aspose.com/slides/ko/net/parser/pptx/) — Open XML 프레젠테이션 형식
