# Python PowerPoint API โดย Aspose.Slides

> Aspose.Slides สำหรับ Python ผ่าน Java คือ Python PowerPoint API ที่ให้คุณสร้าง แก้ไข และแปลงงานนำเสนอ PowerPoint ใน Python

Source: https://products.aspose.com/slides/th/python-java/
Updated: 2026-08-11



<p><strong>Aspose.Slides สำหรับ Python ผ่าน Java</strong> เป็นไลบรารี Python ที่ให้คุณสร้างภาพยนตร์และแปลงการนำเสนอ PowerPoint ใน Python แสดงเนื้อหาที่กล่าวมาทั้งหมด ตัวอย่างหนังตรวจสอบระดับน้ำตาลในเลือด ระดับคุณภาพเพื่อดูคุณสมบัติ มากมายมหาศาล เช่น การควบคุมการตัดสินของผู้เล่นเอง และการพิมพ์ที่เป็นทางการอย่างเป็นทางการใดๆ ก็ตามที่ร้องขอให้มีการยื่นรายการได้ในเวลาอันสั้น...</p>

## เหตุใดจึงเลือก Aspose.Slides สำหรับ Python ผ่าน Java

Aspose.Slides สำหรับ Python ผ่าน Java มีข้อได้เปรียบเหนือโซลูชันอื่นๆ สำหรับการทำงานอัตโนมัติของ PowerPoint เช่น:

- **ความเข้ากันได้ข้ามแพลตฟอร์ม**: Aspose.Slides สำหรับ Python ผ่าน Java รองรับหลายแพลตฟอร์ม คุณสามารถใช้ Aspose.Slides สำหรับ Python ผ่าน Java บน Windows, Linux, macOS และระบบปฏิบัติการอื่นๆ
- **บูรณาการและปรับใช้ได้ง่าย**: Aspose.Slides สำหรับ Python ผ่าน Java เป็นไลบรารีแบบสแตนด์อโลนที่ไม่ต้องใช้ Microsoft Office หรือซอฟต์แวร์อื่นใดในการติดตั้งบนระบบของคุณ คุณสามารถผสานรวม Aspose.Slides สำหรับ Python ผ่าน Java เข้ากับแอปพลิเคชันที่มีอยู่ของคุณได้อย่างง่ายดาย และปรับใช้บนเซิร์ฟเวอร์หรือสภาพแวดล้อมคลาวด์ใดก็ได้
- **ฟีเจอร์และฟังก์ชันอันทรงพลัง**: Aspose.Slides สำหรับ Python ผ่าน Java มอบชุดฟีเจอร์และฟังก์ชันการทำงานที่หลากหลายสำหรับการทำงานกับงานนำเสนอ PowerPoint เช่น การสร้างและแก้ไขสไลด์ การเพิ่มและแก้ไขรูปร่าง ข้อความ รูปภาพ ภาพเคลื่อนไหว การเปลี่ยนภาพ แผนภูมิ ตาราง และองค์ประกอบอื่นๆ การใช้ธีมและเลย์เอาต์ การแทรกเสียงและวิดีโอ การส่งออกและการพิมพ์งานนำเสนอ ส่งออกเป็นวิดีโอ และอื่นๆ อีกมากมาย
- **ประสิทธิภาพและคุณภาพสูง**: Aspose.Slides สำหรับ Python ผ่าน Java มอบผลลัพธ์ประสิทธิภาพและคุณภาพระดับสูงสำหรับการประมวลผลงานนำเสนอ PowerPoint คุณสามารถประมวลผลงานนำเสนอได้หลายพันรายการในเวลาไม่กี่นาที โดยไม่กระทบต่อความเที่ยงตรงและความแม่นยำของผลลัพธ์
- **ตัวเลือกการทดลองใช้และสิทธิ์การใช้งานฟรี**: Aspose.Slides สำหรับ Python ผ่าน Java นำเสนอเวอร์ชันทดลองใช้ฟรีซึ่งคุณสามารถดาวน์โหลดและใช้งานได้เป็นเวลา 30 วัน โดยไม่มีข้อจำกัดใดๆ คุณยังสามารถเลือกตัวเลือกใบอนุญาตต่างๆ ที่เหมาะกับความต้องการและงบประมาณของคุณ เช่น นักพัฒนา ไซต์ OEM และใบอนุญาตระบบคลาวด์

<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">คุณสมบัติ Python PowerPoint API ขั้นสูง</h2>
   <p>
   </p>
   <div class="col-lg-4">
    <em class="ฟะ 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-table ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10"> รองรับระดับ PowerPoint ผ่าน API</p>
   </div>
   <div class="col-lg-4">
    <em class="ฟะ 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-bar-chart ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">เพิ่มระดับ Excel OleObjects สำหรับวิดีโอ</p>
   </div>
   <div class="col-lg-4">
    <em class="ฟ้า 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-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- เทคโนโลยี ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">สร้างประวัติศาสตร์จากเทคโนโลยี</p>
   </div>
   <div class="col-lg-4">
    <em class="ฟะ fa-ล็อค ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10"> ปกป้องความยุติธรรมและ PDF ที่เป็นผลลัพธ์</p>
   </div>
   <div class="col-lg-4">
    <em class="ฟ้า ฟ้า-พิมพ์ ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">พิมพ์งานนำเสนอบนเครื่องพิมพ์จริง</p>
   </div>
   <div class="col-lg-12">
    <h2 class="h2title">ขอระบบ</h2>
    Aspose.Slides สำหรับ Python ผ่าน Java เป็น API ที่ไม่ขึ้นกับแพลตฟอร์มที่สามารถทำงานบนแพลตฟอร์ม Windows, Unix/Linux & Mac รองรับระบบปฏิบัติการต่อไปนี้:
    <ul>
      <li>JDK 1.8 หรือสูงกว่า</li>
      <li>Python 3.7 ขึ้นไป</li>
      <li>JPype1 1.5.0 หรือสูงกว่า (JPype ได้รับการทดสอบบน Java เวอร์ชันตั้งแต่ 1.8 ถึง 11)</li>
    </ul>
   </div>
   <div class="col-lg-12">
    <h2 class="h2title">ติดตั้งอย่างไร</h2>
    <p>ใช้ <strong>PyPI</strong> เพื่อติดตั้งไลบรารี Python สำหรับการประมวลผลการนำเสนอจาก <a href="https://pypi.org/project/aspose-slides-java/">ที่เก็บ PyPI:</a></p>
    <pre><code>pip install aspose-slides-java</code></pre>
   </div>
    <div class="col-lg-12">
        <h2 class="h2title">วิธีสร้างงานนำเสนอ PowerPoint ใหม่ใน Python</h2>
        <p>ในตัวอย่างที่ให้ไว้ด้านล่าง เราได้เพิ่มสี่เหลี่ยมให้กับสไลด์แรกของงานนำเสนอ</p>
        <pre>
            <code class="python">
import jpype
import asposeslides

jpype.startJVM()

from asposeslides.api import Presentation, SaveFormat, ShapeType

pres = Presentation()
slide = pres.getSlides().get_Item(0)
slide.getShapes().addAutoShape(ShapeType.Rectangle, 50, 150, 300, 200)
pres.save("NewPresentation.pptx", SaveFormat.Pptx)

jpype.shutdownJVM()
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title">วิธีผสานการนำเสนอใน Python</h2>
        <p>รหัส Python นี้แสดงวิธีผสานงานนำเสนอ:</p>
        <pre>
            <code class="python">
import jpype
import asposeslides

jpype.startJVM()

from asposeslides.api import Presentation, SaveFormat

pres1 = Presentation("pres1.pptx");
pres2 = Presentation("pres2.pptx");

for i in range(pres2.getSlides().size()):
    pres1.getSlides().addClone(pres2.getSlides().get_Item(i));

pres1.save("combinedPresentation.pptx", SaveFormat.Pptx);

jpype.shutdownJVM()
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title">วิธีนำเข้างานนำเสนอจาก PDF ใน Python แปลง PDF เป็น PPT, แปลง PDF เป็น PPTX, แปลง PDF เป็น ODP</h2>
        <p>รหัส Python นี้สาธิตกระบวนการแปลง PDF เป็น PowerPoint:</p>
        <pre>
            <code class="python">
import jpype
import asposeslides

jpype.startJVM()

from asposeslides.api import Presentation, SaveFormat

pres = Presentation();

pres.getSlides().removeAt(0);
pres.getSlides().addFromPdf("welcome-to-powerpoint.pdf");

pres.save("outputPresentation.pptx", SaveFormat.Pptx);

jpype.shutdownJVM()
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title">วิธีแปลง PowerPoint เป็น PDF ใน Python</h2>
        <p>รหัส Python นี้แสดงวิธีการแปลงเอกสาร PowerPoint PPT, PPTX และ OpenOffice ODP เป็นเอกสาร PDF โดยใช้ตัวเลือกเริ่มต้น ไฟล์ที่ได้จะเป็นเอกสาร PDF ที่ระดับคุณภาพสูงสุด</p>
        <pre>
            <code class="python">
import jpype
import asposeslides

jpype.startJVM()

from asposeslides.api import Presentation, SaveFormat

pres = Presentation("PowerPoint.pptx");

pres.save("PPTX-to-PDF.pdf", SaveFormat.Pdf);

jpype.shutdownJVM()
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title">วิธีแปลง PowerPoint เป็น JPG ใน Python แปลง PPT เป็น JPG, แปลง PPTX เป็น JPG, แปลง ODP เป็น JPG</h2>
        <p>ตัวอย่างต่อไปนี้แสดงวิธีการแปลงเอกสาร PowerPoint PPT, PPTX และ OpenOffice ODP เป็นชุดรูปภาพ JPEG</p>
        <pre>
            <code class="python">
import jpype
import asposeslides

jpype.startJVM()

from asposeslides.api import Presentation
from javax.imageio import ImageIO
from java.io import File

pres = Presentation("pres.pptx");

format_name = "PNG"

for i in range(pres.getSlides().size()):
    buffImage = pres.getSlides().get_Item(i).getThumbnail(2, 2)
    ImageIO.write(buffImage, format_name, File("image_java" + str(i) + ".png"))

jpype.shutdownJVM()
            </code>
        </pre>
    </div>
  </div>
 </div>
</div>
