Aspose.Slides  for Java

Search PPTX Formats in Java

Native and high performance PPTX document search using server-side Aspose.Slides for Java APIs, without the use of any software like Microsoft or Adobe PDF.

Search PPTX File Using Java

In order to search PPTX file, we’ll use

Aspose.Slides for Java

API which is a feature-rich, powerful and easy to use Search API for Java platform. You can download its latest version directly from


and install it within your Maven-based project by adding the following configurations to the pom.xml.


    <name>Aspose Java API</name>


    <version>version of aspose-slides API</version>

How to Search PPTX Files in Java

A basic document search using Aspose.Slides APIs can be done with just few lines of code.

  1. Load PPTX file by instantiating Presentation Class object.

  2. Get an ITextFrame Objects Array from all slides.

  3. Loop through the Array.

  4. Loop through paragraphs in current ITextFrame.

  5. Loop through portions in the current IParagraph.

  6. Find and Display font height and font name.

System Requirements

Aspose.Slides for Java supports on all major platforms and Operating Systems. Please make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with Java Runtime Environment for JSP/JSF Application and Desktop Applications.
  • Get latest version of Aspose.Slides for Java directly from Maven .

Search PPTX Files - Java

//Load a PPTX file
Presentation pptxPresentation = new Presentation("demo.pptx");
    //Get an Array of ITextFrame objects from all slides
    ITextFrame[] textFramesPPTX = SlideUtil.getAllTextFrames(pptxPresentation, true);

    //Loop through the Array of TextFrames
    for (int i = 0; i < textFramesPPTX.length; i++)
        //Loop through paragraphs in current ITextFrame
        for(IParagraph para : textFramesPPTX[i].getParagraphs()) {
            //Loop through portions in the current IParagraph
            for (IPortion port : para.getPortions()) {
                //Find and Display text in the current portion

                //Find and Display font height of the text

                //Find and Display font name of the text
                if (port.getPortionFormat().getLatinFont() != null)
} finally {
    if (pptxPresentation != null) pptxPresentation.dispose();
  • About Aspose.Slides for Java API

    Aspose.Slides API can be used to read, write, manipulate and convert Microsoft PowerPoint documents to PDF, XPS, HTML, TIFF, ODP and various other formats. One can create new files from scratch and save those in the relevant supported formats. Aspose.Slides is a standalone API for creating, parsing or manipulating presentations, slides and elements and it does not depend on any software like Microsoft or OpenOffice.

    Online PPTX Search Live Demos

    PPTX What is PPTX File Format

    Files with PPTX extension are presentation files created with popular Microsoft PowerPoint application. Unlike the previous version of presentation file format PPT which was binary, the PPTX format is based on the Microsoft PowerPoint open XML presentation file format. 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.

    Read More

    Other Supported Search Documents

    Using Java, one can also search other files including.

    ODP (OpenDocument Presentation Format)
    PPT (Microsoft PowerPoint 97-2003)