PNG JPG BMP TIFF PPTX
Aspose.Slides  for Java

Java’da PPTX Formatlarını Ayrıştırma

Sunucu tarafı Aspose.Slides for Java API’lerini kullanarak, Microsoft veya Adobe PDF gibi herhangi bir yazılım kullanmadan yerel ve yüksek performanslı PPTX belge ayrıştırma.

Java Kullanarak PPTX Dosyası Nasıl Ayrıştırma

PPTX dosyasını ayrıştırmak için kullanacağız

Aspose.Slides for 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

ve pom.xml dosyasına aşağıdaki konfigürasyonları ekleyerek Maven tabanlı projenize kurun.

depo


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

Bağımlılık


<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-slides</artifactId>
    <version>version of aspose-slides API</version>
    <classifier>jdk17</classifier>
</dependency>

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

Aspose.Slides for Java API’leri ile basit bir belge ayrıştırma sadece birkaç satır kodla yapılabilir.

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

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

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

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

PPTX Dosyalarını Ayrıştırma - Java

//Load PPTX file
Presentation pptxPresentation = new Presentation("demo.pptx");
try{
    //Get an Array of TextFrameEx objects from the first slide
    ITextFrame[] textFramesSlideOne = SlideUtil.getAllTextBoxes(pptxPresentation.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 (pptxPresentation != null) pptxPresentation.dispose();
}
//Similarly extarcting text from the Whole Presentation
//Use getAllTextFrames(pptxPresentation, 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.

    Online PPTX Parser Live Demos

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

    PPTX PPTX Dosya Biçimi nedir

    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.

    Daha Fazla Oku

    Desteklenen Diğer Ayrıştırma Belgeleri

    Java kullanarak, dahil olmak üzere diğer formatları kolayca ayrıştırabilirsiniz.

    ODP (OpenDocument Sunum Formatı)
    PPT (Microsoft PowerPoint 97-2003)