# C++ के माध्यम से PPT दस्तावेज़ से टेक्स्ट और चित्र निकालें

> विंडोज 32 बिट, विंडोज 64 बिट और लिनक्स 64 बिट के लिए सी ++ रनटाइम एनवायरनमेंट पर पीपीटी फाइल से टेक्स्ट और इमेज निकालने के लिए सी ++ उदाहरण कोड।

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



## C++ का उपयोग करके PPT फ़ाइल को कैसे पार्स करें?

 PPT फ़ाइल को पार्स करने के लिए, हम उपयोग करेंगे
 [Aspose.Slides for C++](https://products.aspose.com/slides/hi/cpp/)
 एपीआई जो एक सुविधा संपन्न, शक्तिशाली और सी ++ प्लेटफॉर्म के लिए दस्तावेज़ पार्सिंग एपीआई का उपयोग करने में आसान है। आप इसका नवीनतम संस्करण सीधे डाउनलोड कर सकते हैं, बस खोलें
 [NuGet](https://www.nuget.org/packages/aspose.slides)
 पैकेज मैनेजर, खोजें
 **आसमान करें।स्लाइड।सीपीपी**
 और स्थापित करें। आप पैकेज मैनेजर कंसोल से निम्न कमांड का भी उपयोग कर सकते हैं।

### आज्ञा

```cs

PM> Install-Package Aspose.Slides.Cpp

```

## सी++ में पीपीटी फाइलों को पार्स करने के लिए कदम

[Aspose.Slides for C++](https://products.aspose.com/slides/hi/cpp/) API के साथ पार्सिंग करने वाला एक मूल दस्तावेज़ कोड की कुछ पंक्तियों के साथ किया जा सकता है।

पीपीटी फ़ाइल लोड करें।

पहली स्लाइड के ITextFrame ऑब्जेक्ट का ऐरे प्राप्त करें।

TextFrames की सरणी के माध्यम से लूप

वर्तमान ITextFrame में अनुच्छेदों के माध्यम से लूप करें।

वर्तमान आईपीराग्राफ में भागों के माध्यम से लूप करें।

पाठ प्रदर्शित करें।

## सिस्टम आवश्यकताएं

 Aspose.Slides for C++ सभी प्रमुख प्लेटफॉर्म और ऑपरेटिंग सिस्टम पर सपोर्ट करता है। कृपया सुनिश्चित करें कि आपके पास निम्नलिखित पूर्वापेक्षाएँ हैं।

- माइक्रोसॉफ्ट विंडोज या विंडोज 32 बिट, विंडोज 64 बिट और लिनक्स 64 बिट के लिए सी ++ रनटाइम एनवायरनमेंट के साथ संगत ओएस।
- Aspose.Slides for C++ DLL आपके प्रोजेक्ट में संदर्भित।

### PPT फ़ाइलें पार्स करें - C++

```cs
// Sample file path
const String sourceFilePath = u"SourcePath\sourceFile.ppt";

// Load the PPT 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());
		}
	}
}

```

## Aspose के बारे में। C++ API के लिए स्लाइड्स

 Aspose.Slides API का उपयोग Microsoft PowerPoint दस्तावेज़ों को PDF, XPS, HTML, TIFF, ODP और अन्य विभिन्न स्वरूपों में पढ़ने, लिखने, हेरफेर करने और परिवर्तित करने के लिए किया जा सकता है। कोई नए सिरे से नई फाइलें बना सकता है और उन्हें संबंधित समर्थित प्रारूपों में सहेज सकता है। Aspose.Slides प्रस्तुतियों, स्लाइडों और तत्वों को बनाने, पार्स करने या हेरफेर करने के लिए एक स्टैंडअलोन एपीआई है और यह माइक्रोसॉफ्ट या ओपनऑफिस जैसे किसी भी सॉफ्टवेयर पर निर्भर नहीं करता है।

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/hi/cpp/parser/odp/) — OpenDocument प्रस्तुति स्वरूप
- [PPTX](https://products.aspose.com/slides/hi/cpp/parser/pptx/) — एक्सएमएल प्रस्तुति प्रारूप खोलें
