PNG JPG BMP TIFF PPT
Aspose.Slides  for Java

تجزیه فرمت های PPT در جاوا

تجزیه سند PPT بومی و با کارایی بالا با استفاده از Aspose.Slides سمت سرور برای API های جاوا، بدون استفاده از هیچ نرم افزاری مانند Microsoft یا Adobe PDF.

نحوه تجزیه فایل PPT با استفاده از جاوا

برای تجزیه فایل PPT، از

Aspose.Slides for Java

API که یک API تجزیه کننده غنی، قدرتمند و آسان برای استفاده برای پلتفرم جاوا است. آخرین نسخه آن را می توانید مستقیماً از اینجا دانلود کنید

Maven

و با افزودن تنظیمات زیر به pom.xml آن را در پروژه مبتنی بر Maven خود نصب کنید.

مخزن


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

مراحل تجزیه فایل های PPT در جاوا

تجزیه سند پایه با Aspose.Slides for Java API ها را می توان تنها با چند خط کد انجام داد.

  1. فایل PPT را با نصب کلاس Presentation بارگیری کنید.

  2. قاب های متنی اسلاید اول را دریافت کنید.

  3. از طریق هر بخش پاراگراف حلقه بزنید.

  4. خروجی مورد نیاز مانند متن، فونت و غیره را دریافت کنید.

سیستم مورد نیاز

Aspose.Slides برای جاوا در تمام سیستم عامل ها و سیستم عامل های اصلی پشتیبانی می کند. لطفا مطمئن شوید که پیش نیازهای زیر را دارید.

  • مایکروسافت ویندوز یا یک سیستم عامل سازگار با محیط اجرای جاوا برای برنامه های کاربردی JSP/JSF و برنامه های دسکتاپ.
  • آخرین نسخه Aspose.Slides برای جاوا را مستقیماً از اینجا دریافت کنید Maven .
 

تجزیه فایل های PPT - جاوا

//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 for Java API

    Aspose.Slides API را می توان برای خواندن، نوشتن، دستکاری و تبدیل اسناد Microsoft PowerPoint به PDF، XPS، HTML، TIFF، ODP و فرمت های مختلف دیگر استفاده کرد. می توان فایل های جدید را از ابتدا ایجاد کرد و آن ها را در قالب های پشتیبانی شده مربوطه ذخیره کرد. Aspose.Slides یک API مستقل برای ایجاد، تجزیه یا دستکاری ارائه ها، اسلایدها و عناصر است و به هیچ نرم افزاری مانند Microsoft یا OpenOffice وابسته نیست.

    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 (فرمت ارائه اسناد باز)
    PPTX (قالب ارائه XML را باز کنید)