# API PowerPoint của Node.js bởi Aspose.Slides

> Aspose.Slides cho Node.js qua Java là API PowerPoint của Node.js cho phép bạn tạo, sửa đổi và chuyển đổi bản trình bày PowerPoint trong Node.js.

Source: https://products.aspose.com/slides/vi/nodejs-java/
Updated: 2026-08-11



<p><strong>Aspose.Slides dành cho Node.js qua Java</strong> là thư viện Node.js cho phép bạn tạo, sửa đổi và chuyển đổi bản trình bày PowerPoint trong Node.js. Nó hỗ trợ tất cả các yếu tố trình bày như trang trình bày, hình dạng, văn bản, biểu đồ, bảng, hình ảnh, v.v. Nó cũng cung cấp nhiều tính năng nâng cao như hợp nhất, nhân bản, chia tách, so sánh và in bản trình bày. Nó hoạt động mà không có bất kỳ sự phụ thuộc nào và có thể xử lý hàng nghìn bài thuyết trình trong thời gian ngắn.</p>

<p><strong>Aspose.Slides cho Node.js qua Java</strong> cung cấp các tính năng phổ biến sau:</p>
<ul>
    <li>Đang tải, mở và xem bản trình bày.</li>
    <li>Chỉnh sửa bài thuyết trình.</li>
    <li>Chuyển đổi tệp trình bày sang các định dạng trình bày phổ biến, chẳng hạn như PPT, PPTX và ODP.</li>
    <li>Xuất bản trình bày sang PDF, JPG, HTML, GIF, SVG và nhiều định dạng khác.</li>
    <li>Hiển thị và in bài thuyết trình.</li>
    <li>Mã hóa và giải mã bài thuyết trình; thuyết trình bảo vệ bằng mật khẩu và xóa mật khẩu.</li>
    <li>Thao tác với các thực thể trình bày, chẳng hạn như slide chính, hình dạng, biểu đồ, khung ảnh, khung âm thanh, khung video, macro OLE, VBA, hình động, v.v.</li>
    <li>Và nhiều tính năng khác.</li>
</ul>

<p>Node.js là môi trường thời gian chạy JavaScript phổ biến, miễn phí, mã nguồn mở và đa nền tảng, cho phép các nhà phát triển viết các công cụ dòng lệnh và tập lệnh phía máy chủ bên ngoài trình duyệt. Vì lý do này, nhóm <strong>Aspose.Slides</strong> tự hào cung cấp <strong>Aspose.Slides cho Node.js qua Java</strong> cho cộng đồng Node.js.</p>

<div class="diagram1 d1-nodejs">
 <div class="d1-row">
  <div class="d1-col d1-left">
   <header>
    <i class="fa fa-table">
    </i>
    Xử lí dữ liệu
   </header>
   <ul>
    <li>Quản lý biểu đồ</li>
    <li>Quản lý SmartArts</li>
    <li>Quản lý hình dạng PowerPoint</li>
    <li>Quản lý điều khiển ActiveX</li>
    <li>Quản lý OleObjects</li>
   </ul>
   <header>
    <i class="fa fa-text-width">
    </i>
    Văn bản & Đoạn văn
   </header>
   <ul>
    <li>Thao tác văn bản và định dạng</li>
    <li>Thao tác văn bản siêu liên kết</li>
    <li>Đặt loại giữ chỗ</li>
   </ul>
  </div>

  <div class="d1-col d1-right">
   <header>
    <i class="fa fa-cog">
    </i>
    Đồ họa & Đa phương tiện
   </header>
   <ul>
    <li>Quản lý chuyển tiếp slide</li>
    <li>Quản lý hiệu ứng hoạt hình</li>
    <li>Thêm kết nối vào hình dạng</li>
    <li>Xoay và lật hình dạng</li>
    <li>Quản lý kiểu đường kẻ của hình dạng</li>
   </ul>
  </div>

 </div>

 <div class="d1-logo">
  <img width="70" height="75" alt="Node.js PowerPoint Processing APIs" src="https://products.aspose.com/slides/images/aspose_slides-for-nodejs-via-java.svg"/>
  <header>Aspose.Slides</header>
  <footer>
   <small>
    <em>for</em>
   </small>
   Node.js
   <em>via Java</em>
  </footer>
 </div>

</div>

<div class="diagram1 d1-nodejs">
 <div class="d1-row">
  <div class="d1-col d1-left"></div>

  <div class="d1-col d1-right">
   <header>
    <i class="fa fa-cubes">
    </i>
    Môi trường chạy thi hành Java
   </header>
  </div>

 </div>

 <div class="d1-logo">
  <img width="70" height="75" alt="Presentation APIs for Node.js" src="https://products.aspose.com/slides/images/aspose_slides-for-nodejs-via-java.svg"/>
  <header>
   Aspose.Slides
  </header>
  <footer>
   <small>
    <em>for</em>
   </small>
   Node.js
   <em>via Java</em>
  </footer>
 </div>

</div>

<div class="diagram1 d2 d1-nodejs">
 <div class="d1-row">
  <div class="d1-col d1-left">
   <header>
    <i class="fa fa-arrows-v">
    </i>
    Đầu ra đầu vào
   </header>
   <ul>
    <li><b>Microsoft PowerPoint:</b>PPT, PPTX, PPS, POT, PPSX, PPTM, PPSM, POTX, POTM</li>
    <li><b>OpenOffice:</b>ODP</li>
    <li><b>Bố cục cố định:</b>PDF</li>
   </ul>
  </div>

  <div class="d1-col d1-right">
   <header>
    <i class="fa fa-mail-forward">
    </i>
    Chỉ đầu ra
   </header>
   <ul>
    <li><b>Bố cục cố định:</b>PDF, PDF/A, XPS</li>
    <li><b>Hình ảnh:</b>JPEG, PNG, BMP, TIFF, GIF</li>
    <li>SVG</li>
    <li><b>Web:</b>HTML</li>
   </ul>
  </div>

 </div>

 <div class="d1-logo">
  <img width="70" height="75" alt="PowerPoint Presentation API" src="https://products.aspose.com/slides/images/aspose_slides-for-nodejs-via-java.svg"/>
  <header>Aspose.Slides</header>
  <footer>
   <small>
    <em>
     for
    </em>
   </small>
   Node.js
   <em>via Java</em>
  </footer>
 </div>

</div>

<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">Các tính năng API PowerPoint của Node.js nâng cao</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">Tạo hoặc sao chép các slide hiện có từ các mẫu</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">Làm việc với API thông tin PowerPoint trên bảng</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 dụng hoặc loại bỏ lớp bảo vệ trên dạng hình</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">Thêm biểu đồ Excel bên dưới dạng OleObjects vào trang trình bày</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">
     Tạo hình và thêm văn bản vào hình trên slide
    </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">
     Xử lý văn bản và hình ảnh định dạng
    </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">Tạo bài thuyết trình từ cơ sở dữ liệu</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">Bảo vệ bản trình bày và kết quả 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">In bài thuyết trình trên máy vật lý</p>
   </div>
   <div class="col-lg-12">
    <h2 class="h2title">System request</h2>
    <ul>
      <li>Aspose.Slides cho Node.js qua Java là API JavaScript phía máy chủ dựa trên Node.js. Nó có thể chạy trên nền tảng Windows, Unix/Linux & Mac với JDK 1.8 trở lên.</li>
    </ul>
   </div>
   <div class="col-lg-12">
    <h2 class="h2title">Cài đặt thế nào</h2>
    <p>Sử dụng <strong>NPM</strong> để cài đặt thư viện Node.js của chúng tôi nhằm xử lý Bản trình bày từ <a href="https://www.npmjs.com/package/aspose.slides.via.java">kho lưu trữ Gói NPM :</a></p>
    <pre><code>npm install aspose.slides.via.java</code></pre>
   </div>
    <div class="col-lg-12">
        <h2 class="h2title">Cách tạo bản trình bày PowerPoint mới trong Node.js</h2>
        <p>Trong ví dụ dưới đây, chúng tôi đã thêm một hình chữ nhật vào slide đầu tiên của bài thuyết trình.</p>
        <pre>
            <code class="javascript">
var aspose = aspose || {};

aspose.slides = require("aspose.slides.via.java");

var pres = new aspose.slides.Presentation();
try
{
    // Gets the first slide
    var slide = pres.getSlides().get_Item(0);
    // Adds an autoshape with type set to rectangle
    slide.getShapes().addAutoShape(aspose.slides.ShapeType.Rectangle, 50, 150, 300, 200);
    pres.save("outputPresentation.pptx", aspose.slides.SaveFormat.Pptx);
}
finally
{
    if (pres != null) pres.dispose();
}
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title">Cách hợp nhất các bản trình bày trong Node.js</h2>
        <p>Mã Node.js này chỉ cho bạn cách hợp nhất các bản trình bày:</p>
        <pre>
            <code class="javascript">
var aspose = aspose || {};

aspose.slides = require("aspose.slides.via.java");

var pres1 = new aspose.slides.Presentation("pres1.pptx");
var pres2 = new aspose.slides.Presentation("pres2.pptx");
try
{
    for (var i = 0; i < pres2.getSlides().size(); i++)
    {
        pres1.getSlides().addClone(pres2.getSlides().get_Item(i));
    }
    pres1.save("combinedPresentation.pptx", aspose.slides.SaveFormat.Pptx);
}
finally
{
    if (pres1 != null) pres1.dispose();
    if (pres2 != null) pres2.dispose();
}
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title">Cách nhập bản trình bày từ PDF trong Node.js. Chuyển đổi PDF sang PPT, Chuyển đổi PDF sang PPTX, Chuyển đổi PDF sang ODP</h2>
        <p>Mã Node.js này thể hiện quá trình chuyển đổi PDF sang PowerPoint:</p>
        <pre>
            <code class="javascript">
var aspose = aspose || {};

aspose.slides = require("aspose.slides.via.java");

var pres = new aspose.slides.Presentation();
try
{
    pres.getSlides().removeAt(0);
    pres.getSlides().addFromPdf("welcome-to-powerpoint.pdf");
    pres.save("outputPresentation.pptx", aspose.slides.SaveFormat.Pptx);
}
finally
{
    if (pres != null) pres.dispose();
}
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title">Cách chuyển đổi PowerPoint sang PDF trong Node.js</h2>
        <p>Mã Node.js này chỉ cho bạn cách chuyển đổi tài liệu PowerPoint PPT, PPTX và OpenOffice ODP thành tài liệu PDF bằng các tùy chọn mặc định. Tệp kết quả là tài liệu PDF ở mức chất lượng tối đa</p>
        <pre>
            <code class="javascript">
var aspose = aspose || {};

aspose.slides = require("aspose.slides.via.java");

// Instantiate a Presentation object that represents a PPT file
var pres = new aspose.slides.Presentation("PowerPoint.ppt");
try
{
    // Save the presentation as PDF
    pres.save("PPT-to-PDF.pdf", aspose.slides.SaveFormat.Pdf);
}
finally
{
    if (pres != null) pres.dispose();
}
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title">Cách chuyển đổi PowerPoint sang JPG trong Node.js. Chuyển đổi PPT sang JPG, Chuyển đổi PPTX sang JPG, Chuyển đổi ODP sang JPG</h2>
        <p>Ví dụ sau đây cho bạn biết cách chuyển đổi tài liệu PowerPoint PPT, PPTX và OpenOffice ODP thành một tập hợp hình ảnh JPEG.</p>
        <pre>
            <code class="javascript">
var aspose = aspose || {};
var java = require("java");

aspose.slides = require("aspose.slides.via.java");

// Instantiate a Presentation object that represents a PPT file
var pres = new aspose.slides.Presentation("pres.pptx");
try
{
    for (var i = 0; i < pres.getSlides().size(); i++)
    {
        var bmp = pres.getSlides().get_Item(i).getThumbnail(1, 1);
        var imageio = java.newInstanceSync("javax.imageio.ImageIO");
        var file = java.newInstanceSync("java.io.File", "slide_" + i + ".jpg");
        imageio.write(bmp, "JPEG", file);
    }
}
finally
{
    if (pres != null) pres.dispose();
}
            </code>
        </pre>
    </div>
  </div>
 </div>
</div>

> Chúng tôi nhận thấy Aspose.Slides dễ sử dụng và hoạt động tốt trên máy chủ của chúng tôi. Chúng tôi nhận thấy rằng chúng đáp ứng nhu cầu quan trọng về việc tạo tệp động để mở rộng phạm vi tiếp cận của chúng tôi ra ngoài ứng dụng web truyền thống.
>
> — Rick Joi | Workplace Dynamics, UK

> Sản phẩm hoạt động như quảng cáo, tài liệu dễ theo dõi và các diễn đàn hỗ trợ đều là những trợ giúp mà chúng tôi cần. Giải pháp cuối cùng mà chúng tôi triển khai đã vượt xa sự mong đợi ban đầu của chúng tôi rất nhiều.
>
> — Bruce Brien | Stratascope Inc, USA
