PNG JPG BMP TIFF ODP
Aspose.Slides  for C++

C++에서 ODP 형식 구문 분석

Microsoft 또는 Adobe PDF와 같은 소프트웨어를 사용하지 않고 C++ API용 서버측 Aspose.Slides를 사용하여 기본 및 고성능 ODP 문서 구문 분석.

C++를 사용하여 ODP 파일을 구문 분석하는 방법

ODP 파일을 구문 분석하기 위해 다음을 사용합니다.

C++용 Aspose.Slides

기능이 풍부하고 강력하며 사용하기 쉬운 C++ 플랫폼용 문서 구문 분석 API인 API입니다. 최신 버전을 직접 다운로드할 수 있습니다.

NuGet

패키지 관리자, 검색 Aspose.Slides.Cpp 설치합니다. 패키지 관리자 콘솔에서 다음 명령을 사용할 수도 있습니다.

명령


PM> Install-Package Aspose.Slides.Cpp

C++에서 ODP 파일을 구문 분석하는 단계

Aspose.Slides for C++ API를 사용한 기본 문서 파싱은 몇 줄의 코드로 완료할 수 있습니다.

  1. ODP 파일을 로드합니다.

  2. 첫 번째 슬라이드의 ITextFrame 개체 배열을 가져옵니다.

  3. TextFrames 배열을 통해 루프

  4. 현재 ITextFrame의 단락을 반복합니다.

  5. 현재 IParagraph의 부분을 반복합니다.

  6. 텍스트를 표시합니다.

시스템 요구 사항

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

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

ODP 파일 구문 분석 - C++

// Sample file path
const String sourceFilePath = u"SourcePath\sourceFile.odp";

// Load the ODP file
SharedPtr<Presentation> presentation = MakeObject<Presentation>(sourceFilePath);

// Get an Array of ITextFrame objects from the first slide
System::ArrayPtr<SharedPtr<ITextFrame>> textFramesSlideOne = SlideUtil::GetAllTextBoxes(presentation->get_Slides()->idx_get(0));

// Loop through the Array of TextFrames
for (int i = 0; i get_Length(); i++){
	// Loop through paragraphs in current ITextFrame
	for (SharedPtr<IParagraph> paragraph : textFramesSlideOne[i]->get_Paragraphs()){
		// Loop through portions in the current IParagraph
		for (SharedPtr<IPortion> portion : paragraph->get_Portions()){
			// Display text
			Console::WriteLine(portion->get_Text());
		}
	}
}  

    
 
  • C++ API용 Aspose.Slides 정보

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

    Online ODP Parser Live Demos

    Extract text and images from ODP documents right now by visiting our Live Demos website . The live demo has the following benefits

      No need to download Aspose API.
      No need to write any code.
      Just upload your ODP files.
      It will be parsed instantly.

    ODP ODP 파일 형식이란 무엇입니까?

    Files with ODP extension represent presentation file format used by OpenOffice.org in the OASISOpen standard. 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. ODP files can be opened by applications that conform to the OpenDocument format (such as OpenOffice or StarOffice).

    더 읽기

    기타 지원되는 구문 분석 문서

    C++를 사용하면 다음을 포함한 다른 형식을 쉽게 구문 분석할 수 있습니다.

    PPT (마이크로소프트 파워포인트 97-2003)
    PPTX (Open XML 프레젠테이션 형식)