<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mikenews</author_name>
  <author_url>https://blog.hatena.ne.jp/mikenews/</author_url>
  <blog_title>まいける's Tech Blog</blog_title>
  <blog_url>https://techblog-mike.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>必要に迫られたので、ちょっと調べてみたところ、意外に簡単。前提として、imagick モジュールが必要となるので、このあたりを見ながらインストールを済ませておいてください。 それで、その方法ですが &lt;?php // 読み込む PDF をフルパスで指定 $file = '/foo/bar/test.pdf'; // サムネイルを作成するページを指定 $page = 1; // 実際の指定では、1ページが0になるので、調整 $page = $page - 1; $im = new imagick($file[$page]); // PNG 形式に変換 $im-&gt;setImageFormat(&quot;pn…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog-mike.hateblo.jp%2Fentry%2F20100610%2F1276140476&quot; title=&quot;PHP で PDF のサムネイル画像を作成する - まいける&amp;#39;s Tech Blog&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>2010-06-10 12:27:56</published>
  <title>PHP で PDF のサムネイル画像を作成する</title>
  <type>rich</type>
  <url>https://techblog-mike.hateblo.jp/entry/20100610/1276140476</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
