PNG JPG BMP TIFF PPT
Aspose.Slides  for Java

जावा में पार्स पीपीटी प्रारूप

Microsoft या Adobe PDF जैसे किसी भी सॉफ़्टवेयर के उपयोग के बिना, जावा एपीआई के लिए सर्वर-साइड Aspose.Slides का उपयोग करके मूल और उच्च प्रदर्शन पीपीटी दस्तावेज़ पार्सिंग।

जावा का उपयोग करके पीपीटी फ़ाइल को कैसे पार्स करें

PPT फ़ाइल को पार्स करने के लिए, हम उपयोग करेंगे

Aspose.Slides for Java

एपीआई जो एक सुविधा संपन्न, शक्तिशाली और जावा प्लेटफॉर्म के लिए उपयोग में आसान पार्सिंग एपीआई है। आप इसका नवीनतम संस्करण सीधे से डाउनलोड कर सकते हैं

मेवेन

और pom.xml में निम्नलिखित कॉन्फ़िगरेशन जोड़कर इसे अपने मावेन-आधारित प्रोजेक्ट में स्थापित करें।

कोष


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

निर्भरता


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

जावा में पीपीटी फाइलों को पार्स करने के लिए कदम

Aspose.Slides for Java API के साथ पार्सिंग करने वाला एक मूल दस्तावेज़ कोड की कुछ पंक्तियों के साथ किया जा सकता है।

  1. प्रेजेंटेशन क्लास को इंस्टाल करके पीपीटी फाइल लोड करें।

  2. पहले स्लाइड टेक्स्ट फ़्रेम प्राप्त करें।

  3. प्रत्येक अनुच्छेद भाग के माध्यम से लूप करें।

  4. टेक्स्ट, फॉन्ट आदि जैसे आवश्यक आउटपुट प्राप्त करें।

सिस्टम आवश्यकताएं

Aspose.Slides for Java सभी प्रमुख प्लेटफॉर्म और ऑपरेटिंग सिस्टम पर सपोर्ट करता है। कृपया सुनिश्चित करें कि आपके पास निम्नलिखित पूर्वापेक्षाएँ हैं।

  • माइक्रोसॉफ्ट विंडोज या जेएसपी/जेएसएफ एप्लिकेशन और डेस्कटॉप एप्लिकेशन के लिए जावा रनटाइम एनवायरनमेंट के साथ संगत ओएस।
  • सीधे जावा के लिए Aspose.Slides का नवीनतम संस्करण प्राप्त करें मेवेन
 

PPT फ़ाइलें पार्स करें - Java

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

    
 
  • जावा एपीआई के लिए Aspose.Slides के बारे में

    Aspose.Slides API का उपयोग Microsoft PowerPoint दस्तावेज़ों को PDF, XPS, HTML, TIFF, ODP और अन्य विभिन्न स्वरूपों में पढ़ने, लिखने, हेरफेर करने और परिवर्तित करने के लिए किया जा सकता है। कोई नए सिरे से नई फाइलें बना सकता है और उन्हें संबंधित समर्थित प्रारूपों में सहेज सकता है। Aspose.Slides प्रस्तुतियों, स्लाइडों और तत्वों को बनाने, पार्स करने या हेरफेर करने के लिए एक स्टैंडअलोन एपीआई है और यह माइक्रोसॉफ्ट या ओपनऑफिस जैसे किसी भी सॉफ्टवेयर पर निर्भर नहीं करता है।

    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 क्या है PPT फ़ाइल प्रारूप

    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.

    पढ़ने अधिक

    अन्य समर्थित पार्सिंग दस्तावेज़

    जावा का उपयोग करके, कोई भी अन्य प्रारूपों को आसानी से पार्स कर सकता है, जिसमें शामिल हैं।

    ODP (OpenDocument प्रस्तुति स्वरूप)
    PPTX (एक्सएमएल प्रस्तुति प्रारूप खोलें)