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

PPT-formaten ontleden in C++

Native en hoogwaardige PPT-documentparsering met Aspose.Slides aan de serverzijde voor C++ API’s, zonder het gebruik van software zoals Microsoft of Adobe PDF.

Hoe een PPT-bestand te parseren met C++

Om het PPT-bestand te ontleden, gebruiken we

Aspose.Slides voor C++

API, een veelzijdige, krachtige en gebruiksvriendelijke documentparsing-API voor het C++-platform. Je kunt de nieuwste versie direct downloaden, open gewoon

NuGet

pakketbeheerder, zoek naar Aspose.Slides.Cpp en installeren. U kunt ook de volgende opdracht gebruiken vanuit de Package Manager Console.

Opdracht


PM> Install-Package Aspose.Slides.Cpp

Stappen om PPT-bestanden te ontleden in C++

Een basisdocument ontleden met Aspose.Slides for C++ API’s kan worden gedaan met slechts enkele regels code.

  1. Laad PPT-bestand.

  2. Krijg een array van ITextFrame-objecten van de eerste dia.

  3. Loop door de reeks TextFrames

  4. Loop door alinea’s in het huidige ITextFrame.

  5. Doorloop gedeelten in het huidige Iparagraaf.

  6. Geef de tekst weer.

systeem vereisten

Aspose.Slides voor C++ ondersteunt alle belangrijke platforms en besturingssystemen. Zorg ervoor dat u aan de volgende vereisten voldoet.

  • Microsoft Windows of een compatibel besturingssysteem met C++ Runtime Environment voor Windows 32 bit, Windows 64 bit en Linux 64 bit.
  • Aspose.Slides voor C++ DLL waarnaar in uw project wordt verwezen.
 

PPT-bestanden ontleden - C++

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

    
 
  • Over Aspose.Slides voor C++ API

    Aspose.Slides API kan worden gebruikt om Microsoft PowerPoint-documenten te lezen, schrijven, manipuleren en converteren naar PDF, XPS, HTML, TIFF, ODP en verschillende andere formaten. Men kan vanaf het begin nieuwe bestanden maken en deze opslaan in de relevante ondersteunde formaten. Aspose.Slides is een zelfstandige API voor het maken, parseren of manipuleren van presentaties, dia’s en elementen en is niet afhankelijk van software zoals Microsoft of OpenOffice.

    Online PPT Parser Live Demos

    Extract text and images from PPT 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 PPT files.
      It will be parsed instantly.

    PPT Wat is PPT bestandsformaat

    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.

    Meer lezen

    Andere ondersteunde documenten parseren

    Met behulp van C++ kan men gemakkelijk andere formaten ontleden, waaronder.

    ODP (OpenDocument-presentatie-indeling)
    PPTX (Open XML-presentatie-indeling)