PNG JPG BMP TIFF PPT
Aspose.Slides  for .NET

تحليل تنسيقات PPT في C#

تحليل مستندات PPT أصلي وعالي الأداء باستخدام Aspose.Slides من جانب الخادم لـ .NET APIs ، دون استخدام أي برنامج مثل Microsoft أو Adobe PDF.

كيفية تحليل ملف PPT باستخدام C#

من أجل تحليل ملف PPT ، سنستخدمه

Aspose.Slides for .NET

API وهو واجهة برمجة تطبيقات لمعالجة المستندات غنية بالميزات وقوية وسهلة الاستخدام لمنصة C#. يفتح

NuGet

مدير الحزم ، ابحث عن ** Aspose.Slides ** وتثبيت. يمكنك أيضًا استخدام الأمر التالي من Package Manager Console.

أمر


PM> Install-Package Aspose.Slides.NET

خطوات تحليل ملفات PPT في C#

تحليل مستند أساسي باستخدام واجهات برمجة تطبيقات Aspose.Slides for .NET يمكن إجراؤه باستخدام بضعة أسطر من التعليمات البرمجية.

  1. قم بتحميل ملف PPT.

  2. احصل على جميع إطارات النص.

  3. حلقة خلال كل جزء من فقرة.

  4. احصل على المخرجات المطلوبة مثل النص والخط وما إلى ذلك.

متطلبات النظام

يتم دعم واجهات برمجة التطبيقات الخاصة بنا على جميع الأنظمة الأساسية وأنظمة التشغيل الرئيسية. قبل تنفيذ الكود أدناه ، يرجى التأكد من أن لديك المتطلبات الأساسية التالية على نظامك.

  • Microsoft Windows أو نظام تشغيل متوافق مع .NET Framework أو .NET Core أو Windows Azure أو Mono أو Xamarin الأنظمة الأساسية
  • بيئة التطوير مثل Microsoft Visual Studio
  • Aspose.Slides for .NET DLL المشار إليها في مشروعك - قم بالتثبيت من NuGet باستخدام الزر “تنزيل” أعلاه
 

تحليل ملفات PPT - C#

//Extract Text from the Whole ppt Presentation 
    Presentation pptPresentation = new Presentation(dataDir + "demo.ppt");
    
    //Get an Array of ITextFrame objects from all slides in the PPTX
    ITextFrame[] textFramesPPTX = Aspose.Slides.Util.SlideUtil.GetAllTextFrames(pptPresentation, true);
    
    //Loop through the Array of TextFrames
     for (int i = 0; i < textFramesPPTX.Length; i++)
    
        //Loop through paragraphs in current ITextFrame
        foreach (IParagraph para in textFramesPPTX[i].Paragraphs)
    
             //Loop through portions in the current IParagraph
             foreach (IPortion port in para.Portions)
             {
                //Display text in the current portion
                Console.WriteLine(port.Text);
    
                //Display font height of the text
                Console.WriteLine(port.PortionFormat.FontHeight);
    
                //Display font name of the text
                if (port.PortionFormat.LatinFont != null)
                   Console.WriteLine(port.PortionFormat.LatinFont.FontName);
            }  

    
 
  • حول Aspose.Slides for .NET API

    يمكن استخدام Aspose.Slides API لقراءة وكتابة ومعالجة وتحويل مستندات Microsoft PowerPoint إلى PDF و XPS و HTML و TIFF و ODP وتنسيقات أخرى متنوعة. يمكن للمرء إنشاء ملفات جديدة من البداية وحفظ تلك في التنسيقات المدعومة ذات الصلة. Aspose.Slides هي واجهة برمجة تطبيقات مستقلة لإنشاء العروض التقديمية والشرائح والعناصر أو تحليلها أو معالجتها ، ولا تعتمد على أي برنامج مثل 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.

    قراءة المزيد

    تنسيقات الإعراب الأخرى المدعومة

    باستخدام C# ، يمكن للمرء بسهولة تحليل التنسيقات الأخرى بما في ذلك.

    ODP (تنسيق العرض التقديمي OpenDocument)
    PPTX (افتح تنسيق عرض XML)