# Java aracılığıyla ODP belgesinden metin ve resim ayıklayın

> JSP/JSF Uygulaması ve Masaüstü Uygulamaları için Java Runtime Environment'daki ODP dosyasından metin ve görüntüleri çıkarmak için Java örnek kodu.

Source: https://products.aspose.com/slides/tr/java/parser/odp/
Updated: 2026-08-11



## Java Kullanarak ODP Dosyasını Ayrıştırma

 ODP dosyasını ayrıştırmak için kullanacağız
 [Aspose.Slides for Java](https://products.aspose.com/slides/tr/java/)
 Java platformu için zengin özelliklere sahip, güçlü ve kullanımı kolay bir ayrıştırma API'si olan API. En son sürümünü doğrudan adresinden indirebilirsiniz.
 [Maven](https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-slides)
 ve pom.xml dosyasına aşağıdaki konfigürasyonları ekleyerek Maven tabanlı projenize kurun.

### depo

```xml

<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://releases.aspose.com/java/repo/</url>
</repository>

```

### Bağımlılık

```xml

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-slides</artifactId>
    <version>26.8</version>
    <classifier>jdk16</classifier>
</dependency>
```

## Java'da ODP Dosyalarını Ayrıştırma Adımları

[Aspose.Slides for Java](https://products.aspose.com/slides/tr/java/) API'leri ile basit bir belge ayrıştırma sadece birkaç satır kodla yapılabilir.

Sunum sınıfını başlatarak ODP dosyasını yükleyin.

İlk slayt metin çerçevelerini alın.

Her paragraf bölümü boyunca döngü yapın.

Metin, yazı tipi vb. gibi gerekli çıktıları alın.

## sistem gereksinimleri

 Aspose.Slides for Java, tüm büyük platformlarda ve İşletim Sistemlerinde destekler. Lütfen aşağıdaki ön koşullara sahip olduğunuzdan emin olun.

- Microsoft Windows veya JSP/JSF Uygulaması ve Masaüstü Uygulamaları için Java Runtime Environment ile uyumlu bir işletim sistemi.
- Aspose.Slides for Java'nın en son sürümünü doğrudan şu adresten edinin:
 [Maven](https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-slides) .

### ODP Dosyalarını Ayrıştırma - Java

```cs
//Load ODP file
Presentation odpPresentation = new Presentation("demo.odp");
try{
    //Get an Array of TextFrameEx objects from the first slide
    ITextFrame[] textFramesSlideOne = SlideUtil.getAllTextBoxes(odpPresentation.getSlides().get_Item(0));

    //Loop through the Array of TextFrames
    for (int i = 0; i < textFramesSlideOne.length; i++){
        //Loop through paragraphs in current TextFrame
        for (IParagraph para : textFramesSlideOne[0].getParagraphs()){
            //Loop through portions in the current Paragraph
            for (IPortion port : para.getPortions()){
                //Display text in the current portion
                System.out.print(port.getText());

                //Display font height of the text
                System.out.print(port.getPortionFormat().getFontHeight());

                //Display font name of the text
                System.out.print(port.getPortionFormat().getLatinFont().getFontName());
            }
        }
    }
} finally {
    if (odpPresentation != null) odpPresentation.dispose();
}
//Similarly extarcting text from the Whole Presentation
//Use getAllTextFrames(odpPresentation, true) method and Iterate through Array

```

## Aspose.Slides for Java API hakkında

 Aspose.Slides API, Microsoft PowerPoint belgelerini okumak, yazmak, değiştirmek ve PDF, XPS, HTML, TIFF, ODP ve diğer çeşitli formatlara dönüştürmek için kullanılabilir. Sıfırdan yeni dosyalar oluşturabilir ve bunları ilgili desteklenen biçimlerde kaydedebilirsiniz. Aspose.Slides, sunumlar, slaytlar ve öğeler oluşturmak, ayrıştırmak veya değiştirmek için bağımsız bir API'dir ve Microsoft veya OpenOffice gibi herhangi bir yazılıma bağlı değildir.

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).

## Desteklenen Diğer Ayrıştırma Belgeleri

- [PPT](https://products.aspose.com/slides/tr/java/parser/ppt/) — Microsoft PowerPoint 97-2003
- [PPTX](https://products.aspose.com/slides/tr/java/parser/pptx/) — Açık XML sunum Formatı
