LoginSignup
0
0

More than 1 year has passed since last update.

(仮)Laravel Snappyにて、cssサイズが想定通りにする。(wkhtmltopdf側の設定をする。)

Posted at

※私的備忘録のため、乱雑に記載しています。

【問題点】

  • Laravel Snappy にて、cssが想定通りに出力されない

【原因】

  • wkhtmltopdf にて、自動調整がdefaultでonになっている。

【解決方法】

  • snappyのsetOptionにて、以下のように設定すれば良い。
    ->setOption('disable-smart-shrinking', true);

※wkhtmlでは、--disable-smart-shrinking true を追加してあげれば良い。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0