<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kz7743</author_name>
  <author_url>https://blog.hatena.ne.jp/Kz7743/</author_url>
  <blog_title>Kzの不定記</blog_title>
  <blog_url>https://kz7743.hatenadiary.org/</blog_url>
  <categories>
    <anon>VSTO</anon>
  </categories>
  <description>Word 文書に埋め込まれた画像を取り出すにはどうしたら…といろいろ調べて回ってみると、クリップボードを経由して画像を取りだしているサンプルは見つけた。が、Word は拡縮前(劣化前)の画像データを持っている*1のでそれを何とかして取りだしてみた。 スマートなやり方ではない気がするけどポイントは下記の通り Range.get_XML() から該当部分の DOCX(XML) を取得して、Base64Encode された元の画像データを取得する 取得した画像データから実際に Word 上に表示されているサムネイル画像を作成する Word 上の画像の単位は Point なので Pixel へ変換する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkz7743.hatenadiary.org%2Fentry%2F20090419%2F1240157937&quot; title=&quot;Word から InlineShape の画像を取り出す - Kzの不定記&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-04-19 01:18:57</published>
  <title>Word から InlineShape の画像を取り出す</title>
  <type>rich</type>
  <url>https://kz7743.hatenadiary.org/entry/20090419/1240157937</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
