PNG JPG BMP TIFF PPTX
Aspose.Slides  for .NET

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

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

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

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

Aspose.Slides for .NET

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

NuGet

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

أمر


PM> Install-Package Aspose.Slides.NET

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

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

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

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

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

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

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

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

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

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

//Extract Text from the Whole pptx Presentation 
    Presentation pptxPresentation = new Presentation(dataDir + "demo.pptx");
    
    //Get an Array of ITextFrame objects from all slides in the PPTX
    ITextFrame[] textFramesPPTX = Aspose.Slides.Util.SlideUtil.GetAllTextFrames(pptxPresentation, 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 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 تنسيق الملف

    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.

    قراءة المزيد

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

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

    ODP (تنسيق العرض التقديمي OpenDocument)
    PPT (مايكروسوفت باور بوينت 97-2003)