# PythonPowerPointAPI。 Python PPTX、Aspose.SlidesのPPT

> MicrosoftPowerPointファイルを操作するPythonライブラリ。 Python PPTX、PPT。編集変換PPTPPTXPPS POT PPSX PPTM PPSM POTX POTMODPPDFおよびその他の多くの形式を作成します。

Source: https://products.aspose.com/slides/ja/python-net/
Updated: 2026-08-11



<p><strong> Aspose.Slides for Python via .NET </ strong>は、プレゼンテーションを操作または処理するための強力なクラスライブラリです。この製品を使用すると、アプリケーションと開発者は、サードパーティのアプリケーションや依存関係なしに、PowerPointプレゼンテーション（PPT、PPTX）および他の形式のプレゼンテーション（ODP）を読み取り、編集、操作、および変換できます。 </p>

<p><strong> Aspose.Slides forPythonvia。 NET </ strong>は、次の人気のある機能を提供します。</p>
<ul>
    <li>プレゼンテーションの読み込み、開き、表示。</li>
    <li>プレゼンテーションの編集。</li>
    <li>プレゼンテーションをPDF、Word、JPG、HTML、GIF、SVG、およびその他の多くの形式に変換します。</li>
    <li>プレゼンテーションのレンダリングと印刷。</li>
    <li>プレゼンテーションの暗号化と復号化。プレゼンテーションのパスワード保護とパスワードの削除。</li>
    <li>マスタースライド、シェイプ、チャート、画像フレーム、オーディオフレーム、ビデオフレーム、OLE、VBAマクロ、アニメーションなどのプレゼンテーションエンティティを操作します。</li>
    <li>そして、より多くの機能。</li>
</ul>

<p>Pythonは非常に人気のある言語であり、通常のアプリケーション、Web開発、研究および学術タスク、データ分析などで多く使用されています。このため、<strong> Aspose.Slides</strong>チームは<strong>Aspose.Slides</strong>チームが提供できることを誇りに思っています。 strong> Aspose.Slides for Python via .NET</strong>からPythonコミュニティへ。 </p>

<div class="diagram1 d1-python">
 <div class="d1-row">
  <div class="d1-col d1-left">
   <header>
    <i class="fa fa-table">
    </i>
    情報処理
   </header>
   <ul>
    <li>
チャートの管理
    </li>
    <li>
SmartArtsを管理する
    </li>
    <li>
PowerPointの図形を管理する
    </li>
    <li>
ActiveXコントロールを管理する
    </li>
    <li>
OleObjectsを管理する
    </li>
   </ul>
   <header>
    <i class="fa fa-text-width">
    </i>
    テキストと段落
   </header>
   <ul>
    <li>
テキストとフォーマットを操作する
    </li>
    <li>
ハイパーリンクテキストを操作する
    </li>
    <li>
プレースホルダータイプを設定する
    </li>
   </ul>
  </div>

  <div class="d1-col d1-right">
   <header>
    <i class="fa fa-cog">
    </i>
    グラフィックとマルチメディア
   </header>
   <ul>
    <li>
スライドトランジションの管理
    </li>
    <li>
アニメーション効果の管理
    </li>
    <li>
図形にコネクタを追加する
    </li>
    <li>
形状を回転および反転
    </li>
    <li>
シェイプの線のスタイルを管理する
    </li>
   </ul>
  </div>

 </div>

 <div class="d1-logo">
  <img width="70" height="75" alt="Python PowerPoint Processing APIs" src="https://www.aspose.cloud/templates/aspose/img/products/slides/aspose_slides-for-python.svg"/>
  <header>
   Aspose.Slides
  </header>
  <footer>
   <small>
    <em>
     for
    </em>
   </small>
   Python
   <em>via .NET</em>
  </footer>
 </div>

</div>

<div class="diagram1 d1-python">
 <div class="d1-row">
  <div class="d1-col d1-left">
   <header>
    <i class="fa fa-cubes">
    </i>
    ウィンドウズ
   </header>
   <ul>
    <li>
Windows 7（x64、x86）
    </li>
    <li>
Windows 8、8.1（x64、x86）
    </li>
    <li>
Windows 10（x64、x86）
    </li>
	<li>
その他
	</li>
   </ul>
  </div>

  <div class="d1-col d1-right">
   <header>
    <i class="fa fa-cubes">
    </i>
    Linux
   </header>
   <ul>
    <li>
Ubuntu
    </li>
    <li>
OpenSUSE
    </li>
    <li>
CentOS
    </li>
	<li>
その他
	</li>
   </ul>
  </div>

 </div>

 <div class="d1-logo">
  <img width="70" height="75" alt="Presentation APIs for Python" src="https://www.aspose.cloud/templates/aspose/img/products/slides/aspose_slides-for-python.svg"/>
  <header>
   Aspose.Slides
  </header>
  <footer>
   <small>
    <em>
     for
    </em>
   </small>
   Python
   <em>via .NET</em>
  </footer>
 </div>

</div>

<div class="diagram1 d2 d1-python">
 <div class="d1-row">
  <div class="d1-col d1-left">
   <header>
    <i class="fa fa-arrows-v">
    </i>
    入出力
   </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>
     PDF
    </li>
   </ul>
  </div>

  <div class="d1-col d1-right">
   <header>
    <i class="fa fa-mail-forward">
    </i>
    出力のみ
   </header>
   <ul>
    <li>
     <b>
固定レイアウト：
     </b>
     PDF, PDF/A, XPS
    </li>
    <li>
     <b>
画像：
     </b>
     JPEG, PNG, BMP, TIFF, GIF
    </li>
    <li>
SVG
    </li>
    <li>
     <b>
ウェブ：
     </b>
     HTML
    </li>
   </ul>
  </div>

 </div>

 <div class="d1-logo">
  <img width="70" height="75" alt="PowerPoint Presentation API" src="https://www.aspose.cloud/templates/aspose/img/products/slides/aspose_slides-for-python.svg"/>
  <header>
   Aspose.Slides
  </header>
  <footer>
   <small>
    <em>
     for
    </em>
   </small>
   Python
   <em>via .NET</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">
    高度なPythonPowerPointAPI機能
   </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">
     APIを介して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チャートをOleObjectsとしてスライドに追加します
    </p>
   </div>
   <div class="col-lg-4">
    <em class="fa fa-link ico-blue fa-2x col-lg-2">
    </em>
    <p class="col-lg-10">
     リンクされたOleObjectのサポート
    </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-4">
    <em class="fa fa-pie-chart 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>Python 3.5、3.6、3.7、3.8、および3.9と互換性があります</li>
	  <li>LinuxでPythonコードを作成する場合は、<ahref="https://docs.aspose.com/slides/python-net/system-requirements/">Linuxの追加要件</a>をご覧ください。</li>
    </ul>
   </div>
   <div class="col-lg-12">
    <h2 class="h2title">
     インストールする方法
    </h2>
    <p><strong> pip </ strong>を使用して、<ahref="https://pypi.org/project/aspose.slides/">PyPIリポジトリ</a>からプレゼンテーション処理用のPythonライブラリをインストールします</p>:
	<pre><code>pip install aspose.slides</code></pre>
   </div>
    <div class="col-lg-12">
        <h2 class="h2title">新しいPowerPointプレゼンテーションを作成します。 Python PPTX、PPT、またはODP</h2>
        <p>以下の例では、プレゼンテーションの最初のスライドに行を追加しています。</p>
        <pre>
            <code class="python">
import aspose.slides as slides

# Instantiate a Presentation object that represents a presentation file
with slides.Presentation() as presentation:
    slide = presentation.slides[0]
    slide.shapes.add_auto_shape(slides.ShapeType.LINE, 50, 150, 300, 0)
    presentation.save("NewPresentation_out.pptx", slides.export.SaveFormat.PPTX)
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title">プレゼンテーションのマージ：Python PPTX、PPT、またはODP</h2>
        <p>このPythonコードは、プレゼンテーションをマージする方法を示しています。</p>
        <pre>
            <code class="python">
import aspose.slides as slides

with slides.Presentation("Presentation1.pptx") as pres1:
    with slides.Presentation("Presentation2.pptx") as pres2:
        for slide in pres2.slides:
            pres1.slides.add_clone(slide)
        pres1.save("combined.pptx", slides.export.SaveFormat.PPTX)
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title"> PDFからプレゼンテーションをインポートする：Python PPTX、PPT、またはODP</h2>
        <p>このPythonコードは、PDFからPowerPointへの変換プロセスを示しています。</p>
        <pre>
            <code class="python">
import aspose.slides as slides

with slides.Presentation() as pres:
    pres.slides.remove_at(0)
    pres.slides.add_from_pdf("welcome-to-powerpoint.pdf")
    pres.save("OutputPresentation.pptx", slides.export.SaveFormat.PPTX)
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title">デフォルトのオプションでPowerPointをPDFに変換：Python PPTX、PPT、またはODPからPDF</h2>
        <p>このPythonコードは、デフォルトのオプションを使用して、PowerPoint PPT、PPTX、およびOpenOfficeODPドキュメントをPDFドキュメントに変換する方法を示しています。結果のファイルは、最高品質レベルのPDFドキュメントです。</p>
        <pre>
            <code class="python">
import aspose.slides as slides

# Instantiate a Presentation object that represents a PPT file
presentation = slides.Presentation("PowerPoint.ppt")

# Save the presentation as PDF
presentation.save("PPT-to-PDF.pdf", slides.export.SaveFormat.PDF)
            </code>
        </pre>
    </div>
    <div class="col-lg-12">
        <h2 class="h2title">PowerPointをJPGに変換：Python PPTX、PPT、またはODPからJPEG</h2>
        <p>次の例は、PowerPoint PPT、PPTX、およびOpenOfficeODPドキュメントを一連のJPEGイメージに変換する方法を示しています。</p>
        <pre>
            <code class="python">
import aspose.slides as slides
import aspose.pydrawing as drawing

pres = slides.Presentation("pres.pptx")

for sld in pres.slides:
    bmp = sld.get_thumbnail(1, 1)
    bmp.save("Slide_{num}.jpg".format(num=str(sld.slide_number)), drawing.imaging.ImageFormat.jpeg)
            </code>
        </pre>
    </div>
  </div>
 </div>
</div>

> Aspose.Slidesは使いやすく、サーバー上でうまく機能することがわかりました。従来のWebアプリケーションを超えてリーチを拡大するために、ファイルを動的に生成するという重要なニーズを満たすことがわかりました。
>
> — Rick Joi | Workplace Dynamics, UK

> 製品は宣伝どおりに機能し、ドキュメントは簡単に理解でき、サポートフォーラムは私たちが必要としていたすべての助けになりました。私たちが展開した最終的なソリューションは、当初の期待を大幅に上回りました。
>
> — Bruce Brien | Stratascope Inc, USA
