<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>HK29</author_name>
  <author_url>https://blog.hatena.ne.jp/HK29/</author_url>
  <blog_title>PythonとVBAで世の中を便利にする</blog_title>
  <blog_url>https://hk29.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>PowerPoint</anon>
  </categories>
  <description>本記事では、Pythonにて複数の画像ファイルをMicrosoft OfficeのPowerPointに貼り付ける雛形コードを載せました。1スライドあたりに貼り付ける列数を指定することで、画像サイズを自動で調整します。そして、貼り付ける行方向の枚数を自動で算出して、1スライドで収まらない場合は次のスライドへ順次貼り付けてゆく仕様です。使用するライブラリは「python-pptx」と「Pillow」です。 下図4つは、本コードの実行例です。貼り付ける画像の列方向の数を本コード内にある変数「num_cols」の数値で指定できます。 ▼画像配置が1スライド4列の場合各ページの上部には、タイトルとサブ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhk29.hatenablog.jp%2Fentry%2F2023%2F12%2F29%2F235505&quot; title=&quot;Python パワーポイントに複数の画像ファイルを1スライドあたりに指定列数ずつ貼り付ける - PythonとVBAで世の中を便利にする&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/H/HK29/20231229/20231229232545.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-12-29 23:55:05</published>
  <title>Python パワーポイントに複数の画像ファイルを1スライドあたりに指定列数ずつ貼り付ける</title>
  <type>rich</type>
  <url>https://hk29.hatenablog.jp/entry/2023/12/29/235505</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
