{"id":6543,"date":"2022-05-31T13:53:32","date_gmt":"2022-05-31T04:53:32","guid":{"rendered":"http:\/\/www.otwo.jp\/blog\/?p=6543"},"modified":"2022-05-31T13:53:32","modified_gmt":"2022-05-31T04:53:32","slug":"dompdf","status":"publish","type":"post","link":"https:\/\/www.otwo.jp\/blog\/dompdf\/","title":{"rendered":"\u3010dompdf\u3011\u65e5\u672c\u8a9e\u5bfe\u5fdc\u3068\u753b\u50cf\u8868\u793a\u306e\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_main.png\" alt=\"\" width=\"700\" height=\"400\" class=\"alignnone size-full wp-image-6586\" srcset=\"https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_main.png 700w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_main-150x86.png 150w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_main-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>\u3053\u3093\u306b\u3061\u306fWEB\u306e\u4f50\u91ce\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306fPHP\u3067PDF\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8abf\u3079\u308b\u6a5f\u4f1a\u304c\u3042\u3063\u305f\u306e\u5171\u6709\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4f7f\u7528\u3057\u305f\u306e\u306fdompdf\u3068\u8a00\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>dompdf\u3092\u8a66\u3059\u306b\u3042\u305f\u3063\u3066\u4e0b\u8a18\u306e\u30dd\u30a4\u30f3\u30c8\u3067\u8e93\u304f\u4eba\u3082\u3044\u308b\u304b\u3068\u601d\u3063\u305f\u306e\u3067\u4eca\u56de\u306f\u5099\u5fd8\u9332\u3082\u517c\u306d\u3066\u5bfe\u5fdc\u65b9\u6cd5\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<div style=\"font-size: 90%; background-color: #e6efe6; padding: 2% 2.5%; border-radius: 10px; line-height: 2.0em;\">\n\u30fb\u65e5\u672c\u8a9e\u5bfe\u5fdc<br \/>\n\u30fb\u753b\u50cf\u51fa\u529b\n<\/div>\n<p>PDF\u51fa\u529b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u4ed6\u306b\u3082\u3042\u308a\u307e\u3059\u304c\u3001dompdf\u306fHTML\u306e\u66f8\u5f0f\u3092PDF\u306b\u3057\u3066\u304f\u308c\u308b\u3082\u306e\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u77e5\u8b58\u304c\u3042\u308c\u3070\u81ea\u7531\u5ea6\u304c\u9ad8\u304f\u3001\u697d\u306b\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u4f5c\u308c\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<br \/>\n\u3082\u3057PDF\u51fa\u529b\u3092\u691c\u8a0e\u3055\u308c\u3066\u3044\u308b\u65b9\u304c\u3044\u308c\u3070\u5019\u88dc\u3068\u3057\u3066\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<div class=\"pageContents\">\n<p class=\"title\">\u3082\u304f\u3058<\/p>\n<dl>\n<dt><a href=\"#step1\">dompdf\u306e\u5c0e\u5165<\/a><\/dt>\n<dt><a href=\"#step2\">PDF\u3092\u51fa\u529b<\/a><\/dt>\n<dt><a href=\"#step3\">\u65e5\u672c\u8a9e\u306e\u5bfe\u5fdc\u65b9\u6cd5<\/a><\/dt>\n<dd><a href=\"#step3-1\">1.load_font.php\u306e\u7528\u610f<\/a><\/dd>\n<dd><a href=\"#step3-2\">2.\u4f7f\u7528\u3059\u308b\u30d5\u30a9\u30f3\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/dd>\n<dd><a href=\"#step3-3\">3.dompdf\u7528\u306b\u30d5\u30a9\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210<\/a><\/dd>\n<dd><a href=\"#step3-4\">4.css\u3067\u30d5\u30a9\u30f3\u30c8\u3092\u6307\u5b9a<\/a><\/dd>\n<dt><a href=\"#step4\">\u753b\u50cf\u3092\u8868\u793a<\/a><\/dt>\n<\/dl>\n<\/div>\n<h2 id=\"step1\">dompdf\u306e\u5c0e\u5165<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u3053\u3053\u3067\u306f\u624b\u52d5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u624b\u9806\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u306e\u30da\u30fc\u30b8\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u4e00\u5f0f(ZIP)\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4eca\u56de\u8a66\u3057\u305f\u306e\u306fDompdf 1.2.2\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"externalLink\"><a href=\"https:\/\/github.com\/dompdf\/dompdf\/releases\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/dompdf\/dompdf\/releases<\/a><\/div>\n<p>ZIP\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u305f\u3089\u89e3\u51cd\u3057\u3066\u4f5c\u696d\u30d5\u30a9\u30eb\u30c0\u306b\u914d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3053\u3053\u3067\u306f\u4e0b\u8a18\u306e\u69cb\u6210\u3067lib\u30d5\u30a9\u30eb\u30c0\u306bdompdf\u306e\u540d\u524d\u3067\u914d\u7f6e\u3057\u307e\u3057\u305f\u3002<\/p>\n<div style=\"font-size: 90%; background-color: #e6efe6; padding: 2% 2.5%; border-radius: 10px; line-height: 2.0em;\">\n\u25a0\u4f5c\u696d\u30d5\u30a9\u30eb\u30c0<br \/>\n\u2514index.php<br \/>\n\u2514\/lib\/dompdf\/\u3000\u2190\u3000\u3053\u3053\u306b\u89e3\u51cd\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb\u4e00\u5f0f\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3044\u307e\u3059<br \/>\n\u2514\/img\/\n<\/div>\n<h2 id=\"step2\">PDF\u3092\u51fa\u529b<\/h2>\n<p>\u5fc5\u8981\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3067\u304d\u305f\u3089\u3001\u3055\u3063\u305d\u304fPDF\u3092\u51fa\u529b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4e0b\u8a18\u306e\u30bd\u30fc\u30b9\u3092index.php\u306b\u8a18\u8ff0\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\"><code>&lt;?php\r\n\/\/ dompdf\u306e\u8aad\u307f\u8fbc\u307f\r\nrequire_once(\".\/lib\/dompdf\/autoload.inc.php\");\r\nuse Dompdf\\Dompdf;\r\n\r\n\/\/ PDF\u306b\u3059\u308b\u5185\u5bb9\u3092HTML\u3067\u8a18\u8ff0\r\n$html = &lt;&lt;&lt; EOM\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;meta charset=\"utf-8\"&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;div&gt;this is dompdf sample!&lt;\/div&gt;\r\n    &lt;div&gt;\u3053\u308c\u306fPDF\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3059\uff01&lt;\/div&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;\r\nEOM;\r\n\r\n\/\/ PDF\u306e\u8a2d\u5b9a\uff5e\u51fa\u529b\r\n$dompdf = new Dompdf();\r\n$dompdf->loadHtml($html);\r\n$options = $dompdf->getOptions();\r\n$options->set(array('isRemoteEnabled' => false));\r\n$dompdf->setOptions($options);\r\n$dompdf->setPaper('A4', 'landscape');\r\n$dompdf->render();\r\n$dompdf->stream(\"smaple.pdf\", array(\"Attachment\" => 0));\r\n?&gt;\r\n<\/code><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3067\u51fa\u529b\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u3059\u3054\u304f\u7c21\u5358\u3067\u3059\u306d\uff01<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot1.png\" alt=\"\" width=\"700\" height=\"300\" style=\"border: solid 1px #000;\" class=\"alignnone size-full wp-image-6550\" srcset=\"https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot1.png 700w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot1-150x64.png 150w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot1-300x129.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>\u3057\u304b\u3057\u65e5\u672c\u8a9e\u306e\u90e8\u5206\u304c\u6587\u5b57\u5316\u3051\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u3046\u3001dompdf\u306f\u65e5\u672c\u8a9e\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3059\u3002<\/p>\n<h2 id=\"step3\">\u65e5\u672c\u8a9e\u306e\u5bfe\u5fdc\u65b9\u6cd5<\/h2>\n<p>dompdf\u3067\u65e5\u672c\u8a9e\u3092\u6271\u3046\u306b\u306f\u30d5\u30a9\u30f3\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3 id=\"step3-1\">1.load_font.php\u306e\u7528\u610f<\/h3>\n<p>\u4e0b\u8a18\u306e\u30da\u30fc\u30b8\u304b\u3089load_font.php\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066dompdf\u30d5\u30a9\u30eb\u30c0\u76f4\u4e0b\u306b\u8a2d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"externalLink\"><a href=\"https:\/\/github.com\/dompdf\/utils\/blob\/master\/load_font.php\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/dompdf\/utils\/blob\/master\/load_font.php<\/a><\/div>\n<h3 id=\"step3-2\">2.\u4f7f\u7528\u3059\u308b\u30d5\u30a9\u30f3\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n<p>\u6b21\u306b\u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u306e\u6e96\u5099\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306fIPA\u30d5\u30a9\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u304c\u3001\u3082\u3057\u5225\u3067\u4f7f\u3044\u305f\u3044\u30d5\u30a9\u30f3\u30c8\u304c\u3042\u308c\u3070\u5225\u9014\u7528\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002(ttf\u5f62\u5f0f\u306a\u3089\u304a\u305d\u3089\u304f\u5bfe\u5fdc\u3067\u304d\u308b\u306f\u305a\u3067\u3059)<br \/>\n\u4e0b\u8a18\u30b5\u30a4\u30c8\u304b\u3089IPA\u30b4\u30b7\u30c3\u30af\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<div class=\"externalLink\"><a href=\"https:\/\/moji.or.jp\/ipafont\/ipa00303\/\" target=\"_blank\" rel=\"noopener noreferrer\">IPA\u30d5\u30a9\u30f3\u30c8 Ver.00303 | \u4e00\u822c\u793e\u56e3\u6cd5\u4eba \u6587\u5b57\u60c5\u5831\u6280\u8853\u4fc3\u9032\u5354\u8b70\u4f1a<\/a><\/div>\n<h3 id=\"step3-3\">3.dompdf\u7528\u306b\u30d5\u30a9\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210<\/h3>\n<p>\u6700\u521d\u306b\u7528\u610f\u3057\u305fload_font.php\u3092\u4f7f\u3063\u3066\u30d5\u30a9\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u306e\u3010\u3011\u3092\u9069\u5b9c\u4fee\u6b63\u3057\u3066\u30b3\u30de\u30f3\u30c9\u5b9f\u884c(\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3084PowerShell\u3068\u304b\u3067)\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\"><code>php \u30101\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u3011\/load_font.php \u3010\u4efb\u610f(css\u3067\u6307\u5b9a\u3059\u308bfont\u540d\u306b\u306a\u308b)\u3011 \u30102\u306e\u30d5\u30a9\u30f3\u30c8\u304c\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u3011\/\u3010\u30d5\u30a9\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u3011\r\n<\/code><\/pre>\n<\/div>\n<p>\u5c11\u3057\u898b\u8f9b\u304f\u306a\u3063\u305f\u306e\u3067\u5b9f\u969b\u306b\u79c1\u304c\u4f7f\u7528\u3057\u305f\u30b3\u30de\u30f3\u30c9\u3082\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u3061\u306a\u307f\u30d5\u30a9\u30f3\u30c8\u3092load_font.php\u3068\u540c\u968e\u5c64\u306b\u30b3\u30d4\u30fc\u3057\u3066\u3044\u3066\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u306f\u30b3\u30d4\u30fc\u3057\u305f\u968e\u5c64\u307e\u3067\u79fb\u52d5\u3057\u305f\u72b6\u614b\u3067\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\"><code>php load_font.php ipag ipag.ttf\r\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068dompdf\u30d5\u30a9\u30eb\u30c0\u5185\u306efonts\u30d5\u30a9\u30eb\u30c0\u306b\u30d5\u30a9\u30f3\u30c8\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3 id=\"step3-4\">4.css\u3067\u30d5\u30a9\u30f3\u30c8\u3092\u6307\u5b9a<\/h3>\n<p>index.php\u5185\u306eHTML\u306b\u30d5\u30a9\u30f3\u30c8\u3092\u6307\u5b9a\u3059\u308c\u3070\u65e5\u672c\u8a9e\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\"><code>&lt;style&gt;\r\n  html{\r\n    font-family: ipag;\r\n  }\r\n&lt;\/style&gt;\r\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u3067\u65e5\u672c\u8a9e\u306e\u5bfe\u5fdc\u306f\u5b8c\u4e86\u3067\u3001\u5148\u307b\u3069\u306ePDF\u3092\u6539\u3081\u3066\u78ba\u8a8d\u3059\u308b\u3068\u3002<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot2.png\" alt=\"\" width=\"700\" height=\"300\" style=\"border: solid 1px #000;\" class=\"alignnone size-full wp-image-6555\" srcset=\"https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot2.png 700w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot2-150x64.png 150w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot2-300x129.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><br \/>\n\u7121\u4e8b\u306b\u65e5\u672c\u8a9e\u304c\u6b63\u3057\u304f\u8868\u793a\u3055\u308c\u307e\u3057\u305f\uff01<\/p>\n<h2 id=\"step4\">\u753b\u50cf\u3092\u8868\u793a<\/h2>\n<p>\u7d9a\u3044\u3066dompdf\u3067\u753b\u50cf\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3067\u3059\u3002<br \/>\n\u7406\u7531\u307e\u3067\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001HTML\u306b&lt;img src=&#8221;img\/sample.png&#8221;&gt;\u3068\u30bf\u30b0\u3092\u6253\u3061\u8fbc\u3093\u3067\u3082<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot3.png\" alt=\"\" width=\"700\" height=\"300\" style=\"border: solid 1px #000;\" class=\"alignnone size-full wp-image-6558\" srcset=\"https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot3.png 700w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot3-150x64.png 150w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot3-300x129.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><br \/>\n\u3053\u3093\u306a\u611f\u3058\u3067[Image not found or type unknown]\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u306f\u753b\u50cf\u6307\u5b9a\u3092base64\u306b\u3059\u308b\u3053\u3068\u3067\u56de\u907f\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\"><code>&lt;?php\r\n\/\/ dompdf\u306e\u8aad\u307f\u8fbc\u307f\r\nrequire_once(\".\/lib\/dompdf\/autoload.inc.php\");\r\nuse Dompdf\\Dompdf;\r\n\r\n\/\/ \u4f7f\u7528\u3059\u308b\u753b\u50cf\u3092base64\u306b\u5909\u63db\r\n$file = \"img\/sample.png\";\r\n$image = base64_encode(file_get_contents($file));\r\n\r\n\/\/ PDF\u306b\u3059\u308b\u5185\u5bb9\u3092HTML\u3067\u8a18\u8ff0\r\n$html = &lt;&lt;&lt; EOM\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;meta charset=\"utf-8\"&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;img src=\"data:image\/png;base64,$image\"&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;\r\nEOM;\r\n\r\n\/\/ PDF\u306e\u8a2d\u5b9a\uff5e\u51fa\u529b\r\n$dompdf = new Dompdf();\r\n$dompdf->loadHtml($html);\r\n$options = $dompdf->getOptions();\r\n$options->set(array('isRemoteEnabled' => false));\r\n$dompdf->setOptions($options);\r\n$dompdf->setPaper('A4', 'landscape');\r\n$dompdf->render();\r\n$dompdf->stream(\"smaple.pdf\", array(\"Attachment\" => 0));\r\n?&gt;\r\n<\/code><\/pre>\n<\/div>\n<p>\u6700\u4f4e\u9650\u3067\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u30b3\u30fc\u30c9\u3068\u3057\u3066\u306f\u3053\u308c\u3067\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot4.png\" alt=\"\" width=\"700\" height=\"300\" style=\"border: solid 1px #000;\" class=\"alignnone size-full wp-image-6563\" srcset=\"https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot4.png 700w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot4-150x64.png 150w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2022\/05\/dompdf_shot4-300x129.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><br \/>\n\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306fpng\u3067\u306e\u66f8\u304d\u65b9\u306b\u306a\u308b\u306e\u3067\u3001\u5225\u306e\u62e1\u5f35\u5b50\u3092\u6271\u3046\u5834\u5408\u306fimg\u30bf\u30b0\u306e\u66f8\u5f0f\u3092\u62e1\u5f35\u5b50\u306b\u5408\u308f\u305b\u305f\u5f62\u306b\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6700\u521d\u3001\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u306a\u304b\u3063\u305f\u6642\u306f\u7126\u308a\u307e\u3057\u305f\u304c\u65b9\u6cd5\u3055\u3048\u77e5\u3063\u3066\u3044\u308c\u3070\u96e3\u3057\u3044\u3082\u306e\u3067\u306f\u306a\u3044\u3067\u3059\u306d\uff01<\/p>\n<hr>\n<p>\u3044\u304b\u304c\u3060\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u3001dompdf\u306f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u77e5\u8b58\u304c\u3042\u308c\u3070\u304b\u306a\u308a\u81ea\u7531\u306b\u7d44\u3081\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u4f7f\u3044\u52dd\u624b\u304c\u3059\u3054\u304f\u3044\u3044\u3067\u3059\u3002<br \/>\n\u3067\u3082\u65e5\u672c\u8a9e\u5bfe\u5fdc\u3060\u3063\u305f\u308a\u5c11\u3057\u9762\u5012\u306a\u4f5c\u696d\u304c\u3042\u3063\u305f\u308a\u3068&#8221;\u3068\u308a\u3042\u3048\u305a&#8221;\u3067\u89e6\u308b\u306b\u306f\u5c11\u3057\u624b\u9593\u306b\u611f\u3058\u308b\u65b9\u3082\u3044\u308b\u304b\u306a\u3068\u3082\u601d\u3044\u307e\u3057\u305f\u3002<br \/>\n\u306a\u306e\u3067\u300c\u4fbf\u5229\u305d\u3046\u3060\u3057\u4f7f\u3063\u3066\u307f\u305f\u3044\uff01\u300d\u3068\u601d\u3044\u3064\u3064\u4eca\u56de\u7d39\u4ecb\u3057\u305f\u7b87\u6240\u3067\u8e93\u3044\u3066\u3044\u308b\u65b9\u304c\u3044\u308c\u3070\u5c11\u3057\u3067\u3082\u52a9\u3051\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u307e\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306fWEB\u306e\u4f50\u91ce\u3067\u3059\u3002 \u4eca\u56de\u306fPHP\u3067PDF\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8abf\u3079\u308b\u6a5f\u4f1a\u304c\u3042\u3063\u305f\u306e\u5171\u6709\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u4f7f\u7528\u3057\u305f\u306e\u306fdompdf\u3068\u8a00\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306a\u308a\u307e\u3059\u3002 dompdf\u3092\u8a66\u3059\u306b\u3042\u305f\u3063\u3066\u4e0b\u8a18\u306e\u30dd\u30a4\u30f3\u30c8\u3067\u8e93\u304f\u4eba [&hellip;]<\/p>\n","protected":false},"author":25,"featured_media":6587,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[5,146],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts\/6543"}],"collection":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/comments?post=6543"}],"version-history":[{"count":38,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts\/6543\/revisions"}],"predecessor-version":[{"id":6589,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts\/6543\/revisions\/6589"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/media\/6587"}],"wp:attachment":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/media?parent=6543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/categories?post=6543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/tags?post=6543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}