# Node.js melalui .NET PowerPoint API oleh Aspose.Slides

> Aspose.Slides untuk Node.js melalui .NET adalah API PowerPoint Node.js yang memungkinkan Anda membuat, memodifikasi, dan mengonversi presentasi PowerPoint di Node.js.

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



<p><strong>Aspose.Slides untuk Node.js melalui .NET</strong> adalah pustaka Node.js yang memungkinkan Anda membuat, memodifikasi, dan mengonversi presentasi PowerPoint di Node.js. Ini mendukung semua elemen presentasi seperti slide, bentuk, teks, bagan, tabel, gambar, dan banyak lagi. Ia juga menawarkan banyak fitur lanjutan seperti menggabungkan, mengkloning, memisahkan, membandingkan, dan mencetak presentasi. Ia bekerja tanpa ketergantungan apa pun dan dapat memproses ribuan presentasi dalam waktu singkat.</p>

<p><strong>Aspose.Slides untuk Node.js melalui .NET</strong> menyediakan fitur populer berikut:</p>
<ul>
    <li>Memuat, membuka, dan melihat presentasi.</li>
    <li>Mengedit presentasi.</li>
    <li>Mengonversi file presentasi ke format presentasi populer, seperti PPT, PPTX, dan ODP.</li>
    <li>Mengekspor presentasi ke PDF, JPG, HTML, GIF, SVG, dan banyak format lainnya.</li>
    <li>Merender dan mencetak presentasi.</li>
    <li>Mengenkripsi dan mendekripsi presentasi; presentasi yang melindungi kata sandi dan menghapus kata sandi.</li>
    <li>Memanipulasi entitas presentasi, seperti slide master, bentuk, bagan, bingkai foto, bingkai audio, bingkai video, OLE, makro VBA, animasi, dll.</li>
    <li>Dan masih banyak lagi fitur lainnya.</li>
</ul>

<p>Node.js adalah lingkungan runtime JavaScript yang populer, gratis, bersumber terbuka, dan lintas platform yang memungkinkan pengembang menulis alat baris perintah dan skrip sisi server di luar browser. Karena alasan ini, tim <strong>Aspose.Slides</strong> dengan bangga menawarkan <strong>Aspose.Slides untuk Node.js melalui .NET</strong> kepada komunitas 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">Fitur API PowerPoint Node.js Tingkat Lanjut</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">Membuat atau mengkloning slide yang ada dari template</p>
   </div>
   <div kelas="col-lg-4">
    <em class="fa fa-tabel ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">Bekerja dengan tabel PowerPoint melalui API</p>
   </div>
   <div kelas="col-lg-4">
    <em class="fa fa-perisai ico-biru fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">Menerapkan atau menghapus perlindungan pada bentuk</p>
   </div>
   <div kelas="col-lg-4">
    <em class="fa fa-bar-chart ico-biru fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">Tambahkan bagan Excel sebagai OleObjects ke slide</p>
   </div>
   <div kelas="col-lg-4">
    <em class="fa fa-gambar ico-biru fa-2x col-lg-2">
    </em>
    <p kelas="col-lg-10">
     Membuat bentuk dan menambahkan teks ke bentuk di slide
    </p>
   </div>
   <div kelas="col-lg-4">
    <em class="fa fa-align-left ico-blue fa-2x col-lg-2">
    </em>
    <p kelas="col-lg-10">
     partisipasi dalam pemformatan teks & bentuk
    </p>
   </div>
   <div kelas="col-lg-4">
    <em class="fa fa-database ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">Hasilkan presentasi dari database</p>
   </div>
   <div kelas="col-lg-4">
    <em class="fa fa-lock ico-biru fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">Lindungi presentasi & PDF yang dihasilkan</p>
   </div>
   <div kelas="col-lg-4">
    <em class="fa fa-print ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">Cetak presentasi di printer fisik</p>
   </div>
   <div kelas="col-lg-12">
    <h2 class="h2title">Persyaratan Sistem</h2>
    <ul>
      <li>Aspose.Slides untuk Node.js melalui .NET adalah API JavaScript sisi server berdasarkan Node.js. Ini dapat berjalan pada platform Windows, Unix/Linux & Mac dengan .NET6 atau lebih tinggi.</li>
    </ul>
   </div>
   <div class="col-lg-12">
    <h2 class="h2title">Bagaimana cara meng-install</h2>
    <p>Gunakan <strong>NPM</strong> untuk menginstal pustaka Node.js kami untuk pemrosesan Presentasi dari <a href="https://www.npmjs.com/package/aspose.slides.via.net">repositori Paket NPM :</a></p>
    <pre><code>npm install aspose.slides.via.net</code></pre>
   </div>
    <div class="col-lg-12">
        <h2 class="h2title">Cara Membuat Presentasi PowerPoint Baru di Node.js</h2>
        <p>Dalam contoh yang diberikan di bawah ini, kami telah menambahkan persegi panjang ke slide pertama presentasi.</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">Cara Menambah/Menghapus/Mengkloning Slide dan Mengedit Properti Bentuk di Node.js</h2>
        <p>Kode Node.js ini menunjukkan kepada Anda cara mengedit berbagai properti dan mengkloning slide:</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">Cara Mengonversi PowerPoint ke PDF di Node.js</h2>
        <p>Kode Node.js ini menunjukkan cara mengonversi dokumen PowerPoint ke 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">Cara Mengonversi PowerPoint ke GIF di Node.js</h2>
        <p>Kode Node.js ini menunjukkan cara mengonversi PowerPoint menjadi gambar 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">Cara Mengonversi PowerPoint ke HTML di Node.js</h2>
        <p>Kode Node.js ini menunjukkan cara mengonversi PowerPoint ke dokumen 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">Cara Mengonversi PowerPoint ke ODP di Node.js</h2>
        <p>Kode Node.js ini menunjukkan cara mengonversi PowerPoint menjadi dokumen 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">Cara Menggabungkan Presentasi di Node.js</h2>
        <p>Kode Node.js ini menunjukkan cara menggabungkan presentasi:</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">Cara Mengambil Berbagai Properti Presentasi PowerPoint </h2>
        <p>Contoh berikut menunjukkan cara mengambil berbagai properti presentasi 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>
