# Retrieve and Update Presentation Information in Java

> Explore slides, structure and metadata in PowerPoint and OpenDocument presentations using Java for faster insights and smarter content audits.

Source: https://docs.aspose.com/slides/java/examine-presentation/
Updated: 2026-08-05


## **Overview**

This article shows how to inspect presentation information in Aspose.Slides. It explains how to determine a presentation’s current format without loading the full file, read its document properties, and update those properties when needed.

The examples are based on the [PresentationInfo](https://reference.aspose.com/slides/java/com.aspose.slides/presentationinfo/) and [DocumentProperties](https://reference.aspose.com/slides/java/com.aspose.slides/documentproperties/) APIs and demonstrate typical operations for working with presentation metadata.

## **Check a Presentation Format**

Before working on a presentation, you may want to find out what format (PPT, PPTX, ODP, and others) the presentation is in at the moment.

You can check a presentation's format without loading the presentation. See this Java code:

```java
import com.aspose.slides.*;

IPresentationInfo info = PresentationFactory.getInstance().getPresentationInfo("pres.pptx");
System.out.println(info.getLoadFormat()); // PPTX

IPresentationInfo info2 = PresentationFactory.getInstance().getPresentationInfo("pres.ppt");
System.out.println(info2.getLoadFormat()); // PPT

IPresentationInfo info3 = PresentationFactory.getInstance().getPresentationInfo("pres.odp");
System.out.println(info3.getLoadFormat()); // ODP
```

## **Get Presentation Properties**

This Java code shows you how to get presentation properties (information about the presentation):

```java
import com.aspose.slides.*;

IPresentationInfo info = PresentationFactory.getInstance().getPresentationInfo("pres.pptx");
IDocumentProperties props = info.readDocumentProperties();
System.out.println(props.getCreatedTime());
System.out.println(props.getSubject());
System.out.println(props.getTitle());
// .. 
```

You may want to see the [properties under the DocumentProperties](https://reference.aspose.com/slides/java/com.aspose.slides/documentproperties/#DocumentProperties--) class.

## **Update Presentation Properties**

Aspose.Slides provides the [PresentationInfo.updateDocumentProperties](https://reference.aspose.com/slides/java/com.aspose.slides/PresentationInfo#updateDocumentProperties-com.aspose.slides.IDocumentProperties-) method that allows you to make changes to presentation properties.

Let's say we have a PowerPoint presentation with the document properties shown below.

![Original document properties of the PowerPoint presentation](input_properties.png)

This code example shows you how to edit some presentation properties:

```java
import com.aspose.slides.*;
import java.util.Date;

String fileName = "sample.pptx";

IPresentationInfo info = PresentationFactory.getInstance().getPresentationInfo(fileName);

IDocumentProperties properties = info.readDocumentProperties();
properties.setTitle("My title");
properties.setLastSavedTime(new Date());

info.updateDocumentProperties(properties);
info.writeBindedPresentation(fileName);
```

The results of changing the document properties are shown below.

![Changed document properties of the PowerPoint presentation](output_properties.png)

## **Useful Links**

To get more information about a presentation and its security attributes, you may find these links useful:

- [Checking whether a Presentation is Encrypted](https://docs.aspose.com/slides/java/password-protected-presentation/#checking-whether-a-presentation-is-encrypted)
- [Checking whether a Presentation is Write Protected (read-only)](https://docs.aspose.com/slides/java/password-protected-presentation/#checking-whether-a-presentation-is-write-protected)
- [Checking whether a Presentation is Password Protected Before Loading it](https://docs.aspose.com/slides/java/password-protected-presentation/#checking-whether-a-presentation-is-password-protected-before-loading-it)
- [Confirming the Password Used to Protect a Presentation](https://docs.aspose.com/slides/java/password-protected-presentation/#validating-or-confirming-that-a-specific-password-has-been-used-to-protect-a-presentation).

## **FAQ**

### How can I check whether fonts are embedded and which ones they are?

Look for [embedded-font information](https://reference.aspose.com/slides/java/com.aspose.slides/fontsmanager/#getEmbeddedFonts--) at the presentation level, then compare those entries with the set of [fonts actually used across content](https://reference.aspose.com/slides/java/com.aspose.slides/fontsmanager/#getFonts--) to identify which fonts are critical for rendering.

### How can I quickly tell if the file has hidden slides and how many?

Iterate through the [slide collection](https://reference.aspose.com/slides/java/com.aspose.slides/slidecollection/) and inspect each slide's [visibility flag](https://reference.aspose.com/slides/java/com.aspose.slides/slide/#getHidden--).

### Can I detect whether custom slide size and orientation are used, and whether they differ from the defaults?

Yes. Compare the current [slide size](https://reference.aspose.com/slides/java/com.aspose.slides/presentation/#getSlideSize--) and orientation with the standard presets; this helps anticipate behavior for printing and export.

### Is there a quick way to see if charts reference external data sources?

Yes. Traverse all [charts](https://reference.aspose.com/slides/java/com.aspose.slides/chart/), check their [data source](https://reference.aspose.com/slides/java/com.aspose.slides/chartdata/#getDataSourceType--), and note whether the data is internal or link-based, including any broken links.

### How can I assess 'heavy' slides that may slow rendering or PDF export?

For each slide, tally object counts and look for large images, transparency, shadows, animations, and multimedia; assign a rough complexity score to flag potential performance hotspots.

