# Node.js عبر .NET PowerPoint API بواسطة Aspose.Slides

> Aspose.Slides for Node.js via .NET عبارة عن واجهة برمجة تطبيقات Node.js PowerPoint التي تتيح لك إنشاء عروض PowerPoint التقديمية وتعديلها وتحويلها في Node.js.

Source: https://products.aspose.com/slides/ar/nodejs-net/
Updated: 2026-08-11



<p><strong>Aspose.Slides for Node.js via .NET</strong> هي مكتبة Node.js التي تتيح لك إنشاء عروض PowerPoint التقديمية وتعديلها وتحويلها في Node.js. وهو يدعم جميع عناصر العرض التقديمي مثل الشرائح والأشكال والنصوص والمخططات والجداول والصور والمزيد. كما يوفر العديد من الميزات المتقدمة مثل دمج العروض التقديمية واستنساخها وتقسيمها ومقارنتها وطباعتها. إنه يعمل بدون أي تبعيات ويمكنه معالجة آلاف العروض التقديمية في وقت قصير.</p>

<p>يوفر <strong>Aspose.Slides for Node.js عبر .NET</strong> هذه الميزات الشائعة:</p>
<ul>
    <li>تحميل العروض التقديمية وفتحها وعرضها.</li>
    <li>تحرير العروض التقديمية.</li>
    <li>تحويل ملفات العروض التقديمية إلى تنسيقات العروض التقديمية الشائعة، مثل PPT وPPTX وODP.</li>
    <li>تصدير العروض التقديمية إلى PDF وJPG وHTML وGIF وSVG والعديد من التنسيقات الأخرى.</li>
    <li>تقديم وطباعة العروض التقديمية.</li>
    <li>تشفير وفك تشفير العروض التقديمية؛ العروض التقديمية لحماية كلمة المرور وإزالة كلمات المرور.</li>
    <li>التعامل مع كيانات العرض التقديمي، مثل الشرائح الرئيسية والأشكال والمخططات وإطارات الصور وإطارات الصوت وإطارات الفيديو ووحدات ماكرو OLE وVBA والرسوم المتحركة وما إلى ذلك.</li>
    <li>والعديد من الميزات.</li>
</ul>

<p>Node.js هي بيئة تشغيل جافا سكريبت شائعة ومجانية ومفتوحة المصدر ومتعددة الأنظمة الأساسية، تتيح للمطورين كتابة أدوات سطر الأوامر والبرامج النصية من جانب الخادم خارج المتصفح. لهذا السبب، يفخر فريق <strong>Aspose.Slides</strong> بتقديم <strong>Aspose.Slides for Node.js عبر .NET</strong> إلى مجتمع Node.js.</p>

<div class="container-fluid features-section bg-gray singleproduct">
 <a class="anchor" id="features" name="features">
 </a>
 <div class="row">
  <div class="container">
   <h2 class="pr-ft">ميزات Node.js PowerPoint API المتقدمة</h2>
   <p>
   </p>
   <div class="col-lg-4">
    <em class="fa fa-copy ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">قم بإنشاء أو استنساخ الشرائح الموجودة من القوالب</p>
   </div>
   <div class="col-lg-4">
    <em class="fa fa-table ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">العمل مع جداول PowerPoint عبر واجهة برمجة التطبيقات</p>
   </div>
   <div class="col-lg-4">
    <em class="fa fa-shield ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">تطبيق الحماية للغطاء أو التغطية</p>
   </div>
   <div class="col-lg-4">
    <em class="fa fa-bar-chart ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">أضف مخططات Excel ككائنات OleObject إلى القرص</p>
   </div>
   <div class="col-lg-4">
    <em class="fa fa-image ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">
     إنشاء كافة النسخ على الأدوية
    </p>
   </div>
   <div class="col-lg-4">
    <em class="fa fa-align-left ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">
     التعامل مع تنسيق النص والشكل
    </p>
   </div>
   <div class="col-lg-4">
    <em class="fa fa-database ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10"> تقديم عروض تقديمية من قاعدة البيانات</p>
   </div>
   <div class="col-lg-4">
    <em class="fa fa-lock ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">حماية العروض المقدمة بصيغة PDF</p>
   </div>
   <div class="col-lg-4">
    <em class="fa fa-print ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">طباعة العروض التقديمية على الطابعة الحالية</p>
   </div>
   <div class="col-lg-12">
    <h2 class="h2title"> متطلبات النظام</h2>
    <ul>
      <li>Aspose.Slides for Node.js عبر .NET عبارة عن واجهة برمجة تطبيقات JavaScript من جانب الخادم تعتمد على Node.js. يمكن تشغيله على أنظمة Windows وUnix/Linux وMac مع .NET6 أو أعلى.</li>
    </ul>
   </div>
   <div class="col-lg-12">
    <h2 class="h2title">كيفية تثبيت</h2>
    <p>استخدم <strong>NPM</strong> لتثبيت مكتبة Node.js الخاصة بنا لمعالجة العروض التقديمية من <a href="https://www.npmjs.com/package/aspose.slides.via.net">مستودع حزمة NPM :</a></p>
    <pre><code>npm install aspose.slides.via.net</code></pre>
   </div>
    <div class="col-lg-12">
        <h2 class="h2title">كيفية إنشاء عرض تقديمي جديد لـ PowerPoint في Node.js</h2>
        <p>في المثال الموضح أدناه، أضفنا مستطيلاً إلى الشريحة الأولى من العرض التقديمي.</p>
        <pre>
            <code class="JavaScript">
const asposeSlides = require('aspose.slides.via.net');

const { Presentation, SaveFormat, ShapeType } = asposeSlides;

var pres = new Presentation();
try
{
    var slide = pres.slides.get(0);
    slide.shapes.addAutoShape(ShapeType.Rectangle, 50, 150, 300, 200);

    pres.save("pres.pptx", SaveFormat.Pptx);
}
finally
{
    if (pres != null) pres.dispose();
}
            </code>
        </pre>
    </div>

    <div class="col-lg-12">
        <h2 class="h2title">كيفية إضافة/إزالة/استنساخ الشرائح وتحرير خصائص الشكل في Node.js</h2>
        <p>يوضح لك كود Node.js هذا كيفية تحرير الخصائص المختلفة واستنساخ الشرائح:</p>
        <pre>
            <code class="JavaScript">
const asposeSlides = require('aspose.slides.via.net');

const { Presentation, BackgroundType, FillType, ImageFormat } = asposeSlides;

var pres = new Presentation();
try
{
    // Add an empty slide to the presentation
    pres.slides.addEmptySlide(pres.layoutSlides.get(0));

    // Create another presentation and add its clone into the pres
    var pres2 = new Presentation();
    pres.slides.addClone(pres2.slides.get(0));

    // Access and modify properties of the first slide in pres
    var slide = pres.slides.get(0); // Get the first slide
    var slideNumber = slide.slideNumber; // Get slide number
    var hidden = slide.hidden; // Check if the slide is hidden

    // Set the background of the first slide
    slide.background.type = BackgroundType.OwnBackground; // Set background type
    slide.background.fillFormat.fillType = FillType.Solid; // Set fill type to solid
    slide.background.fillFormat.solidFillColor.color = "#AEC025F4"; // Set a solid fill color
}
finally
{
    if (pres != null) pres.dispose();
}
            </code>
        </pre>
    </div>

    <div class="col-lg-12">
        <h2 class="h2title">كيفية تحويل PowerPoint إلى PDF في Node.js</h2>
        <p>يوضح لك رمز Node.js هذا كيفية تحويل PowerPoint إلى مستند PDF</p>
        <pre>
            <code class="JavaScript">
const asposeSlides = require('aspose.slides.via.net');

const { Presentation, SaveFormat } = asposeSlides;

var pres = new Presentation("pres.pptx");
try
{
    pres.save("pres.pdf", SaveFormat.Pdf);
}
finally
{
    if (pres != null) pres.dispose();
}
            </code>
        </pre>
    </div>

    <div class="col-lg-12">
        <h2 class="h2title">كيفية تحويل PowerPoint إلى GIF في Node.js</h2>
        <p>يوضح لك رمز Node.js هذا كيفية تحويل PowerPoint إلى صورة GIF</p>
        <pre>
            <code class="JavaScript">
const asposeSlides = require('aspose.slides.via.net');

const { Presentation, SaveFormat } = asposeSlides;

var pres = new Presentation("pres.pptx");
try
{
    pres.save("pres.gif", SaveFormat.Gif);
}
finally
{
    if (pres != null) pres.dispose();
}
            </code>
        </pre>
    </div>

    <div class="col-lg-12">
        <h2 class="h2title">كيفية تحويل PowerPoint إلى HTML في Node.js</h2>
        <p>يوضح لك رمز Node.js هذا كيفية تحويل PowerPoint إلى مستند HTML</p>
        <pre>
            <code class="JavaScript">
const asposeSlides = require('aspose.slides.via.net');

const { Presentation, SaveFormat } = asposeSlides;

var pres = new Presentation("pres.pptx");
try
{
    pres.save("pres.html", SaveFormat.Html);
}
finally
{
    if (pres != null) pres.dispose();
}
            </code>
        </pre>
    </div>

    <div class="col-lg-12">
        <h2 class="h2title">كيفية تحويل PowerPoint إلى ODP في Node.js</h2>
        <p>يوضح لك رمز Node.js هذا كيفية تحويل PowerPoint إلى مستند ODP</p>
        <pre>
            <code class="JavaScript">
const asposeSlides = require('aspose.slides.via.net');

const { Presentation, SaveFormat } = asposeSlides;

var pres = new Presentation("pres.pptx");
try
{
    pres.save("pres.odp", SaveFormat.Odp);
}
finally
{
    if (pres != null) pres.dispose();
}
            </code>
        </pre>
    </div>

    <div class="col-lg-12">
        <h2 class="h2title">كيفية دمج العروض التقديمية في Node.js</h2>
        <p>يوضح لك كود Node.js هذا كيفية دمج العروض التقديمية:</p>
        <pre>
            <code class="JavaScript">
const asposeSlides = require('aspose.slides.via.net');

const { Presentation, SaveFormat } = asposeSlides;

var pres1 = new Presentation("pres1.pptx");
var pres2 = new Presentation("pres2.pptx");
try
{
    for (var i = 0; i < pres2.slides.length; i++)
    {
        pres1.slides.addClone(pres2.slides.get(i));
    }

    pres1.save("combinedPresentation.pptx", SaveFormat.Pptx);
}
finally
{
    if (pres1 != null) pres1.dispose();
    if (pres2 != null) pres2.dispose();
}
            </code>
        </pre>
    </div>

    <div class="col-lg-12">
        <h2 class="h2title">كيفية استرداد الخصائص المختلفة لعرض PowerPoint التقديمي </h2>
        <p>يوضح لك المثال التالي كيفية استرداد الخصائص المختلفة لعرض PowerPoint التقديمي.</p>
        <pre>
            <code class="JavaScript">
const asposeSlides = require('aspose.slides.via.net');

const { Presentation } = asposeSlides;

var pres = new Presentation("pres.pptx");
try
{
    // Retrieve various properties of the presentation
    var countSlides = pres.slides.count; // Total number of slides
    var countMastersSlides = pres.masters.count; // Total number of master slides
    var countLayoutSlides = pres.layoutSlides.count; // Total number of layout slides
    var firstSlideNumber = pres.firstSlideNumber; // Number of the first slide
    var lastView = pres.viewProperties.lastView; // Last view type of the presentation
    var masterThemeName = pres.masterTheme.name; // Name of the master theme
    var sourceFormat = pres.sourceFormat; // Format of the source presentation
    var countVideos = pres.videos.count; // Total number of videos in the presentation
    var countImages = pres.images.count; // Total number of images in the presentation

    // Retrieve objects for further manipulation or information extraction
    var slideObject = pres.slides.get(0); // Object of the first slide
    var mastersSlideObject = pres.masters.get(0); // Object of the first master slide

    // Log the total number of slides to the console
    console.log("countSlides:" + countSlides);
    console.log("countMastersSlides:" + countMastersSlides);
    console.log("countLayoutSlides:" + countLayoutSlides);
    console.log("firstSlideNumber:" + firstSlideNumber);
    console.log("lastView=" + lastView);
    console.log("masterThemeName:" + masterThemeName);
    console.log("sourceFormat:" + sourceFormat);
    console.log("countVideos:" + countVideos);
    console.log("countImages:" + countImages);
}
finally
{
    if (pres != null) pres.dispose();
}
            </code>
        </pre>
    </div>
  </div>
 </div>
</div>
