# Konversi PPTX ke PPTM dengan Python

> Contoh kode untuk konversi PPTX ke PPTM Python. Gunakan PowerPoint Python API untuk konversi batch file PPTX ke file PPTM.

Source: https://products.aspose.com/slides/id/python-net/conversion/pptx-to-pptm/
Updated: 2026-10-27



## Konversi PPTX ke PPTM dengan Python

Perlu mengonversi file PPTX ke PPTM secara terprogram? Menggunakan [*Aspose.Slides untuk Python melalui .NET*](https://products.aspose.com/slides/id/python-net/) pengembang mana pun dapat mengonversi format PPTX ke PPTM hanya dengan beberapa baris kode Python.

Sebagai API pemrosesan presentasi modern, Aspose.Slides untuk Python membuat PPTM dari PPTX dengan cepat. Uji kualitas konversi PPTX ke PPTM langsung di [browser](https://products.aspose.app/slides/conversion) Anda. Aspose PowerPoint PPTX library memungkinkan Anda untuk mengonversi file PPTX ke banyak format populer.

Anda dapat menginstal perpustakaan dari [PyPI](https://pypi.org/project/Aspose.Slides/) menggunakan perintah pip berikut:

### Konsol/Terminal

```console
> pip install aspose.slides

```

## Simpan PPTX sebagai PPTM dengan Python

Gunakan aplikasi gratis untuk melihat demonstrasi proses konversi PPTX ke PPTM.

### Kode contoh ini menunjukkan Konversi PPTX ke PPTM Python

```py

import aspose.slides as slides
import aspose.pydrawing as drawing

with slides.Presentation("presentation.pptx") as presentation:
    presentation.save("presentation.pptm", slides.export.SaveFormat.PPTM)

```

## Bagaimana Mengonversi PPTX ke PPTM dengan Python

Ini adalah langkah-langkah untuk mengkonversi file PPTX ke PPTM menggunakan Python.

1. Muat file PPTX dengan instance kelas Presentasi

1. Panggil metode `save` saat menentukan jalur file keluaran & SaveFormat.PPTM sebagai parameter

1. File PPTX akan disimpan di jalur yang ditentukan

## Persyaratan sistem

Sebelum menjalankan kode sumber contoh konversi Python, pastikan Anda memiliki prasyarat berikut.

- OS berbasis Microsoft Windows atau Linux (lihat [lebih lanjut](https://docs.aspose.com/slides/python-net/system-requirements/)).
- Python 3.5 atau lebih baru
- Aspose.Slides untuk Python direferensikan dalam proyek Anda.

## Konversi PPTX ke PPTM Secara Online

Aplikasi Aspose.Slides Conversion gratis dibuat dengan [Aspose.Slides for Python via .NET](https://products.aspose.com/slides/id/python-net/), API yang sama dengan kode di atas. Buka aplikasinya dan lihat apa yang dapat dilakukan API dengan file PPTX Anda sendiri.

- Berjalan di browser Anda, tanpa perlu menginstal apa pun.
- Lihat cara Aspose.Slides mengonversi file sebelum Anda menulis kode.
- Unggah file PPTX dan simpan sebagai PPTM.
- Unduh hasilnya atau konversi lebih banyak file.

## Konversi lain yang Didukung

- [PPTX TO BMP](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-bmp/) — Gambar bitmap
- [PPTX TO EMF](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-emf/) — Format Metafile yang Ditingkatkan
- [PPTX TO FODP](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-fodp/) — Presentasi XML Datar OpenDocument
- [PPTX TO GIF](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-gif/) — Format Pertukaran Grafis
- [PPTX TO HTML](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-html/) — Hyper Text Markup Language
- [PPTX TO JPG](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-jpg/) — Gambar JPEG
- [PPTX TO ODP](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-odp/) — Format Presentasi OpenDocument
- [PPTX TO OTP](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-otp/) — Format Standar OpenDocument
- [PPTX TO PDF](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-pdf/) — Format Dokumen Portabel
- [PPTX TO PNG](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-png/) — Grafik Jaringan Portabel
- [PPTX TO POT](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-pot/) — File Template Microsoft PowerPoint
- [PPTX TO POTM](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-potm/) — File Templat Microsoft PowerPoint
- [PPTX TO POTX](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-potx/) — Presentasi Template Microsoft PowerPoint
- [PPTX TO PPS](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-pps/) — Pertunjukan Slide PowerPoint
- [PPTX TO PPSM](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-ppsm/) — Slide Show yang mendukung makro
- [PPTX TO PPSX](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-ppsx/) — Pertunjukan Slide PowerPoint
- [PPTX TO PPT](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-ppt/) — Microsoft PowerPoint 97-2003
- [PPTX TO SVG](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-svg/) — Grafik Vektor Skalabel
- [PPTX TO SWF](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-swf/) — Format SWF
- [PPTX TO TIFF](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-tiff/) — Format Gambar yang Ditandai
- [PPTX TO XPS](https://products.aspose.com/slides/id/python-net/conversion/pptx-to-xps/) — Spesifikasi Kertas XML
