<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hs_hachi</author_name>
  <author_url>https://blog.hatena.ne.jp/hs_hachi/</author_url>
  <blog_title>個人的なまとめ</blog_title>
  <blog_url>https://hachi.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>RailsアプリでPDFファイルを出力することがあってそのときにハマったことをメモする 対象バージョン wicked_pdf (2.1.0) wkhtmltopdf-binary (0.12.6.5) HTMLファイルでデバッグ的な何かをする PDFでデザイン崩れを修正するのは一苦労なので、render時に show_as_html を渡す。 そうするとHTMLでデザインが見れるのでブラウザのdev toolsでCSSをいじって微調整ができる。 ただし！あくまでもブラウザで見えるだけであり、実際のPDFとはまた見え方が違うので過信しすぎてはいけない respond_to do |format|…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhachi.hatenablog.com%2Fentry%2F2021%2F12%2F13%2F085508&quot; title=&quot;Railsでwicked_pdf/wkhtmltopdf-binaryを使ってPDFファイルを出力する2021 - 個人的なまとめ&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>2021-12-13 08:55:08</published>
  <title>Railsでwicked_pdf/wkhtmltopdf-binaryを使ってPDFファイルを出力する2021</title>
  <type>rich</type>
  <url>https://hachi.hatenablog.com/entry/2021/12/13/085508</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
